Hi Phil,
You can write:
when (x) [
is 0 @{ print "x is zero" }
...
]
Blocks are written using @{ ... }, otherwise { ... } is a hash.
I am also considering some new syntax for this sort of thing, which will look a bit like this:
when (x) [
is 0 -> print "x is zero"
...
]
The -> would be useful for a one line block. Still a proposed feature so tell me if it's crazy or not.
Haven't looked at Scala Macros yet but will do. I always intended to put macros into the language (and still will) but for the moment I enjoy the fact that you can do a lot without using macros. Lisp was a massive inspiration for this language, so any reason to make it more lispy or more schemy is a good one.
Cheers mate,
Tim.