[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lightweight syntax: a dissident view
- From: Mark Hamburg <mark@...>
- Date: Thu, 25 Nov 2010 18:43:00 -0800
On Nov 25, 2010, at 12:36 PM, Pierre-Yves Gérardy wrote:
> On Thu, Nov 25, 2010 at 19:01, Mark Hamburg <mark@grubmah.com> wrote:
>> `do `[ args `] `=> exprlist `end
>>
>> But then Lua needs to implement the appropriate semantic changes because this would have different effects from:
>>
>> `do `[ args `] `return exprlist `end
> But what happens in the second case if you call the inner function
> after the outer one has returned?
The answer in most languages is that this results in an error being thrown. The answer in Scheme is that it returns again.
Mark
- References:
- Re: Re: Re: Lightweight syntax: a dissident view, Gunnar Zötl
- Re: Re: Re: Lightweight syntax: a dissident view, Luis Carvalho
- Re: Re: Re: Lightweight syntax: a dissident view, Axel Kittenberger
- Re: Re: Re: Lightweight syntax: a dissident view, Pierre-Yves Gérardy
- Re: Re: Re: Lightweight syntax: a dissident view, Roberto Ierusalimschy
- Re: Re: Re: Lightweight syntax: a dissident view, Mateusz Czaplinski
- Re: Re: Re: Lightweight syntax: a dissident view, Axel Kittenberger
- Re: Lightweight syntax: a dissident view, Philippe Lhoste
- Re: Lightweight syntax: a dissident view, Pierre-Yves Gérardy
- Re: Lightweight syntax: a dissident view, Mark Hamburg
- Re: Lightweight syntax: a dissident view, Pierre-Yves Gérardy