[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Arithmetic on strings
- From: Coda Highland <chighland@...>
- Date: Sun, 8 Jul 2012 22:46:40 -0500
> 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