624
know the features of your language
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
it’s just
return a and b or cis the closest Lua has to a ternary operator, but yes, for the above you could shorten it toreturn a or b(“orreturns the first argument if true, otherwise second argument is returned”)