News for hackers. Stuff that matters.
Re:JavaScript needs macros by andreyf on Friday July 09, 2010 @03:04PM (#1501811)
Ah, that clears things up. I'd prefer something like a "defexpression" though, which would allow

defexpression makes sense, too (but I'd call it `defe' - the more often you use something, the shorter it should be). For some reason, I had the intuition that it would be easier to add statements than expressions, but I don't see why it can't be as simple, as long as they start with some kind of unique token that can be considered a reserved keyword when parsing.

Re:JavaScript needs macros by lhorie on Saturday July 10, 2010 @09:07AM (#1503578)
>> but I'd call it `defe' - the more often you use something, the shorter it should be

I was going to write that, but I got the feeling you'd wonder what the "e" stood for :)