lua-users home
lua-l archive

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


Op Di. 5 Mrt. 2019 om 11:02 het Magicks M <m4gicks@gmail.com> geskryf:
>
> I see. It's a bit annoying that implicit nil is not returned as "nil" given that no value is supposed to be represented by nil

The Manual puts it less prescriptively: "it usually represents the
absence of a useful value."

You can very easily make tostring do what you want.

    local _tostring = tostring; tostring = function(s) return _tostring(s) end

Try it out for a week or so and decide whether you still prefer it.