[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
- From: Coda Highland <chighland@...>
- Date: Thu, 12 Jun 2014 11:14:43 -0700
On Thu, Jun 12, 2014 at 11:10 AM, Tim Hill <drtimhill@gmail.com> wrote:
> For the second case, you place each “case” in its own function, and then put these functions into a table indexed by the “switch” expression. Voila! Constant time switch, with no new syntax needed.
Constant time with a painful amount of overhead, thus prompting the
requests for a "proper" switch statement. :P
/s/ Adam
- References:
- The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Andrew Starks
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Roberto Ierusalimschy
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Ross Bencina
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Roberto Ierusalimschy
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Paige DePol
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Ross Bencina
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Thiago L.
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Paige DePol
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Thiago L.
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Paige DePol
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Thiago L.
- Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?], Tim Hill