|
I.e. nil is "a false value" in just about every context, e.g. §3.4.52015-01-14 2:06 GMT+02:00 Aapo Talvensaari <aapo.talvensaari@gmail.com>:
> One correction to docs:
>
> utf8.len docs say:
>
> "If it finds any invalid byte sequence, returns a false value plus the
> position of the first invalid byte."
>
> It actually seems to return nil (which is of course evaluated as false when
> not compared equality to false).
"all logical operators consider both false and nil as false".
The manual also sometimes states "returns false",