lua-users home
lua-l archive

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


> For me, I would be a much happier Lua coder if coercion to strings
> were automatic in more places. Concatenation, table.concat,
> string.format("%s"), and others should all call (__)tostring
> (metamethod), IMO. As for Lua core string <-> number coercions, I'd be
> happy to see that go.

Speaking as a Python developer, I agree with you. Things should coerce
*to* strings much more readily than they should coerce *from* strings.

/s/ Adam