[nem-en] Nemerle 0.9.2 released
Michal Moskal
michal.moskal at gmail.com
Thu Jan 26 07:59:58 CET 2006
On 1/26/06, Philippe Quesnel <philippe.quesnel at gmail.com> wrote:
> thx,
> doc somewhere on the extended matching ??
I just added two santences describing it. I wouldn't call it
documentation though.
> .. apart from the Haskell stuff ! ..
> I had to clean my comp room after (trying to) read(ing) it ...
> 'cause my head exploded :-(
oops... ;-)
> oh, matching in func def params:
> everything except literals ?
Well, just tuples. This is most useful anyway I guess.
> dagn, me that was dreaming of:
> fib(1) 1
> fib(2) 1
> fib(n) fib(n - 2) + fib(n - 1)
fib(_)
| 1 | 2 => 1
| n => fib(n - 2) + fib(n - 1)
It's shorter and IMHO more readable. But it may be my bias toward Caml
(not SML).
>
> oh well ;-)
>
> great work guys
Thanks :-)
> (remember, we're not all University language guys ;-)
:-)
--
Michal Moskal,
http://nemerle.org/~malekith/
More information about the devel-en
mailing list