I got so bored writing tutorials I tried this:
A:begin begin println "hi"; println "world"; end A This experiment seems to work. The rules are simple: 1. labelled begin matches labelled end with the same label. 2. begin matches end 3. You can leave out unlabelled end 4. You can NOT leave out labelled end I got sick of: for i in X do for j in X do for k in X do do something done done done especially if that is nested as well. Loops can already be labelled anyhow, since Felix allows break/continue to have labels to escape multiple levels of loop. So now you could just write: X: for .. for .. for something end X In fact you could write this: fun f () { for i in X do for j in Y do something } since now unlabelled "done" is optional. Other syntactic variations are possible... er .. X: ... /X if you like XML .. :) {Argg) This: X:end X:done might work too. -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language