On Wed, 2006-11-15 at 10:26 -0800, Erick Tryzelaar wrote: > Now that we got pattern calculus, can we do something like this? > > #import <flx.flxh> > > fun foo: int -> int -> int = > | 5->6 => 6 > | 7->8 => 8 > | _ => 9 > ; > > print$ foo 5 6; endl;
The full pattern stuff only works with typematch, where the matching is done at compile time. In any case 5->6 isn't an expression is it? -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Felix-language mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/felix-language
