[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Patch for continue in 5.1
- From: Peter Cawley <lua@...>
- Date: Fri, 12 Jun 2009 12:28:01 +0100
On Thu, Jun 11, 2009 at 11:43 PM, Edgar Toernig<firstname.lastname@example.org> wrote:
> Nice patch. Could you test this case, please:
> local p = 1
> local q = 2
> until q == 1
> print "FAIL"
> Ciao, ET.
Patch and test cases updated, thanks for pointing that out.
Linker Lin: Certainly, there are some situations which can be solved
using both tail calls and "continue", but there are other situations
in which "continue" is the 'obvious' solution and tail calls are not
appropriate. Tail calls are certainly more interesting than
"continue", and can be better in certain situations, but I do not
think that is a strong argument against "continue".
Description: Binary data