[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua-l Digest, Vol 84, Issue 13
- From: Sean Conner <sean@...>
- Date: Tue, 4 Jul 2017 13:06:41 -0400
It was thus said that the Great Kenneth Lorber once stated:
>
> > 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.
Nah. You have:
-> one result
=> two results
-->
=-> three results
-=>
--->
==> four results
=-->
--=>
---->
==-> five results
=-=>
-==>
----->
And so on. But wait? What if you don't know the number? Hmm ...
...> nope, probably hard to parse
*> hmm ... eh ..
@> easy to parse, but no mnemonic meaning and it looks wierd
~> could work ...
-spc