[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: wiki sections for micro-patches?
- From: Sven Olsen <sven2718@...>
- Date: Fri, 17 Feb 2012 11:39:20 -0800
This is correct code:
if a then (x)(2) end
if a (x)(2) end
Ok, that certainly explains why testnext() isn't the default behavior :)
As best as I can tell, the patch implies that an implicit "then" is placed at the end of the maximally long complete _expression_ immediately following the if? So, "if (a) (x)(2) end" becomes an abbreviation for "if (a)(x)(2) then end"?
That's a little dangerous, but, compared to the sorts of obscure parse rules people have gotten used to dealing with in C++, it doesn't seem that bad... Maybe the patch is still worth posting on the wiki, provided an appropriate warning about the occasional need to use an explicit "then" to break up potentially ambiguous sequences of expressions?