Grégoire Dooms wrote:
List comprehension would be some syntactic sugar like this:{Browse [I#J for I in 1..10 for J in 1..10 if I mod J==0] } I don't think this could be implemented as a macro.
Not with macros a la C. But with advanced macros (a la Common Lisp), this is perfectly possible. We have a student working on such macros. And he already has some promizing results.
I will ask him if he can handle something like list I#J with I in 1..10 J in 1..10 where I mod J==0 end which is a bit more Oz-like syntax. Cheers, raph _________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
