[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: functioncall vs varlist ambiguity
- From: David Manura <dm.lua@...>
- Date: Sat, 24 Jul 2010 20:30:56 -0400
On Sat, Jul 24, 2010 at 7:02 PM, Jonathan Castello <twisolar@gmail.com> wrote:
>> io.write("Hello\n")
> Hello
> => true
>
> That's how Ruby's IRB utility works.
At least that disambiguates it. Furthermore, if we replace "=>" with
"-->", while having ">" be interpreted as "attempt to print", then it
somewhat follows a common Lua/PiL convention.
Consider also this:
> 1==1, "true", ""
--> true true
We may at times and at times not prefer it to instead be less ambiguous:
> 1==1, "true", ""
--> true, "true", ""
Examples are on http://lua-users.org/wiki/LuaTutorial .