On Sat, 2007-08-25 at 17:12 -0700, Erick Tryzelaar wrote: > This is so cool. Here's very very basic list comprehensions:
> val xs = [1, 2, 3]; Just be warned this: val xs = f [1,2,3]; should not work .. because it should mean f instantiated with types 1,2 and 3. I.e. a polymorphic instantiation = template instantiation. Your interpretation will probably override this, and break ordinary Felix code. The right way is val xs = list (1,2,3); However for the comprehensions it is a different matter: satom := lsqb sexpr vbar sname <- sexpr rsqb because [ x | y <- e ] could never be interpreted as a subscript due to the presence of the | and <- symbols. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language