[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: about 'fail'
- From: D Burgess <dburgess+3@...>
- Date: Wed, 9 Oct 2019 10:35:14 +1100
> Really? I use this to validate config entries: entry, err = get_value(‘my_bool’). Entry is either true, false or nil if the user didn’t specify a value or gave an erroneous value. Why is that a bad idea?
I have encountered this frequently in Lua code. i.e. nil representing
"no value"
Also common is set_something(nil) meaning to use the default.