lua-users home
lua-l archive

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


On Sun, Jul 24, 2016 at 6:33 PM, Jonathan Goble <jcgoble3@gmail.com> wrote:
[...]

Except that there's no way to make that substitute value falsey. Thus,
code testing for the lack of a useful value must use explicit equality
tests, rather than simply 'if var then ...', which makes for uglier
code.

Beauty is in the eye of the beholder.  Some of us would prefer to see a condition _expression_ with a comparison operator or a boolean variable. Otherwise the intention is not clear. Use strong typing, avoid automatic conversions!

e