[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can someone sell Lua 5.2.0 to me please ? -- metaprogramming
- From: Alexandre Erwin Ittner <alexandre@...>
- Date: Mon, 19 Dec 2011 13:46:38 -0200
2011/12/19 Javier Guerra Giraldez <javier@guerrag.com>:
> In Lua, if a += operator gets accepted, it would have to be _very_
> clear if it's a mutating operator (and would have to add the
> respective metatable operators) or if it's just sugar for a=a+b
> (making the syntax somewhat misleading)
All this talk about including new operators, keywords, etc. makes me
wonder about the possible inclusion of token filters, a Lisp-like
macro system or other metaprogramming facility in the next major
release. It may give an answer for all these "Lua do not have my
favorite operator/statement/conditional construction/etc." questions,
perhaps at the cost of generating some Perlish monstrosities like
Lingua::Romana::Perligata [1]
[1] http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html
--
Alexandre Erwin Ittner - alexandre@ittner.com.br
OpenPGP pubkey 0x0041A1FB @ http://pgp.mit.edu