lua-users home
lua-l archive

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


On Fri, Jun 17, 2011 at 16:46, Charles Nicholson
<charles.nicholson@gmail.com> wrote:
> +1 vote for switch/case!
>
> On Fri, Jun 17, 2011 at 7:57 AM, Fabio Kaminski <fabiokaminski@gmail.com>
> wrote:
>>
>> dont forget that :
>>
>> "goto label"
>>
>> will become
>>
>> "goto 0x4df3..."   or JMP <ADDR>
>>
>> when compiled.. so why complicate?
>>
>> when i was in need of goto in  C (specially in parsers) a simple goto
>> always solved the problem.. :)
>>
>> by the way.. im ignorant in the 5.2 spec.. does it includes "switch"?
>> i miss it..
>>
>>
>>
>> On Thu, Jun 16, 2011 at 3:46 PM, HyperHacker <hyperhacker@gmail.com>
>> wrote:
>> > On Thu, Jun 16, 2011 at 12:37, Alexandre Erwin Ittner
>> > <alexandre@ittner.com.br> wrote:
>> >> 2011/6/16 HyperHacker <hyperhacker@gmail.com>:
>> >>
>> >>> I suppose there's no technical reason you couldn't have all three:
>> >>
>> >> Too much new reserved words breaking existing code? Language
>> >> complexity?
>> >>
>> >>
>> >> --
>> >> Alexandre Erwin Ittner - alexandre@ittner.com.br
>> >> OpenPGP pubkey 0x0041A1FB @ http://pgp.mit.edu
>> >>
>> >>
>> >
>> > Those aren't technical reasons. (Not that they aren't good reasons...)
>> >
>> > --
>> > Sent from my toaster.
>> >
>> >
>>
>
>

Well if we're adding switch/case, why not continue as well? And if
we're adding continue, why not (insert your favourite feature here)?
:)

That said, switch/case and continue *would* be nice to have...

-- 
Sent from my toaster.