Is this just trolling? Why a let and "hello0"? Is that just to make it look weird on purpose?
(define (hello)
(displayln "Hello, World!"))
(hello) (define (hello)
(displayln "Hello, World!"))
(hello) define (hello)
displayln "Hello, World!";
hello;
The boot 'compiler' only did name resolution and parenthesization, then it kicked everything back to an underlying LISP. (In this case, SBCL, which rocked!)The second level language built on Boot was Spad, which used a slightly friendlier syntactic top-form:
e : t = x
With compact forms: e := x
e = x
e : t
e
Which lets you uniformly parse packages, modules, domains, categories, functions, annotations, etc. etc. For instance, we had a Spad-lite syntax: Monoid : Domain = public :
_* : (y : Monoid), (x : Monoid)
_0 : Monoid
Then you could assert membership: assert(Integer, Monoid) :=
_* : (y : Integer), (x : Integer) = (_*:Integer)(x, y)
_0 = (0:Integer)
An implementation would be: Monoid : Domain = public :
-- see above.
= implements :
-- implementations. defun fact (n)
(cond
..
..)
which makes lisp so much more bearable to parensophobic people.