skaller wrote: > On Fri, 2007-05-11 at 08:22 -0400, Jacques Carette wrote: > >> What maple allows you do to would translate (in the above example) to: >> >> module Act >> class Base >> def clone >> stuff >> end def >> end class >> end module >> >> where each of the keywords after end: >> 1) are optional >> 2) must match! >> >> This has been liked by most users. > > But won't work in Felix, because it is free form and > ignores indents. Instead we use ';' as a terminator, > in the style of C and Modula. > > The thing is, if you use indents .. you don't > need any terminators: this works reasonably well > even in long Python code. >
Err, I meant to include ";"s, my mistake :) For felix syntax, I meant something like: module Act = class Base = fun clone () = stuff end fun; end class; end module; ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language