lua-users home
lua-l archive

Re: x < y < z

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


imagine combine range with a cute switch
(please please can we have a switch instead of elseif ... please please)
switch y
 case ]x,z[ : -- doit
 end
 case [x,z] :
 end
 case {1,2,3,f(4)}: -- in {}
 end
 case !{1,2,3} and ]x,z[ : --not in {} but in ]'[
 end
end
:o)

AltStyle によって変換されたページ (->オリジナル) /