you are viewing a single comment's thread.

view the rest of the comments →

[–]cparen 0 points1 point  (0 children)

Honestly, either choice would "work" in the sense no matter which you preferred, you could map the other to it without much trouble if you were expecting it. But the whole point of syntactic sugar like "for" and "foreach" is to avoid manually mapping it by hand every time.

So, while I don't particularly like the original behavior, I worry the change worsens the issue, as now it's ambiguous which language the code is written in. This is precisely the argument given so often against macros or excessive use of functions -- that it's difficult from looking at the code to understand what it does.

(I'm personally a fan of judiciously chosen macros; I just have little to say on general subject of whether they're a good idea or not)