[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Has Lua reached perfection?
- From: Paige DePol <lual@...>
- Date: Sun, 28 Jan 2018 08:19:19 -0600
Soni They/Them L. <fakedme@gmail.com> wrote:
>
>
> On 2018-01-28 12:04 PM, Paige DePol wrote:
>> Soni They/Them L. <fakedme@gmail.com> wrote:
>>
>>> I want a switch where you can use math.random() in switch cases and it
>>> lazy-evaluates them and just works.
>> What practical use would that even have?
>>
>> ~Paige
>
> It's equivalent to if...elseif chains and supports ==
I meant using math.random() as a case value.
I think I'd need to see a code example of what you mean
to understand how this switch block would work.
~Paige
- References:
- Has Lua reached perfection?, Dibyendu Majumdar
- Re: Has Lua reached perfection?, Coda Highland
- Re: Has Lua reached perfection?, KHMan
- Re: Has Lua reached perfection?, Paige DePol
- Re: Has Lua reached perfection?, KHMan
- Re: Has Lua reached perfection?, Sean Conner
- Re: Has Lua reached perfection?, KHMan
- Re: Has Lua reached perfection?, Dirk Laurie
- Re: Has Lua reached perfection?, Paige DePol
- Re: Has Lua reached perfection?, Soni "They/Them" L.
- Re: Has Lua reached perfection?, Paige DePol
- Re: Has Lua reached perfection?, Soni "They/Them" L.