skaller wrote: > On Sat, 2007-03-24 at 21:19 -0700, Erick Tryzelaar wrote: > >> Playing around with the parser for the first time, and I got some >> comments. First, I parse should return an opt instead of an anonymous >> union. See here, on line 52: >> >> http://felix.sourceforge.net/doc/tutorial/introduction/en_flx_tutorial_0070.html >> >> 51: match z with >> 52: | case 0 => { print "Error"; } >> 53: | case 1 (?i) => { print i; } >> 54: endmatch; >> >> I think it would be a little more consistent if it used the option type. >> > > There's actually a 'reason' it doesn't, and the same reason indicates > lists should actually be defined by an anonymous union too. >
Makes sense. Is there any way to alias the two to the same thing so that the type system won't complain, and have any error messages preserve the alias? I could imagine that could get tricky with more complicated types though. e ------------------------------------------------------------------------- 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
