lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Jul 4, 2017, at 7:00 AM, lua-l-request@lists.lua.org wrote:

Re: Proposal: Lua should have arrow operators

I almost hate to point this out but ...

The proposed syntax 
-> pass one result
=> pass two results
isn't a good match to Lua syntax and arbitrarily only handles 2 cases.  What if you need to pass three results?

We have precedent in the long string/long comment syntax, so I hesitantly bring up:
=>  pass one result
==> pass two results
===> pass three results
and so on for as many results as required.

Ken Lorber
keni@his.com