[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: += operator
- From: Scott Morgan <blumf@...>
- Date: Thu, 15 Aug 2019 09:12:23 +0100
On 15/08/2019 08:25, Oliver wrote:
> On 15.08.19 08:59, Michal Kottman wrote:
>> See "Compound Assignment Operators (5.2)"
>> in http://lua-users.org/wiki/LuaPowerPatches to try it out.
>
> These patche demonstrate that it would be possible to have += operator in lua
> and that there are others also needing this.
>
The "RFC: "in place" return from imperative function calls" thread had
an idea that could handle the += requirement and much more:
http://lua-users.org/lists/lua-l/2019-08/msg00088.html
Like Sean there, I'm torn between the handiness of the suggested syntax
sugar and worried about turning the language into an obtuse mess of symbols.
Scott