lua-users home
lua-l archive

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


On Thu, Feb 10, 2011 at 12:11 PM, Axel Kittenberger <axkibe@gmail.com> wrote:
> I was. Lua is not strong typed tough. Exactly due to this implicit
> string<->number idea.

OK, I see, so Java would also be weakly typed because the expression
"hello" + e would call toString() on e implicitly.

> Another opinion to add. String to number conversations are expensive,
> so if you clutter your code with it, i dont see why this should be
> implicit

It's a fait accompli.  Wise people tend to format their numbers
explicitly, but it would be pedantic to insist on it always.

Implicit conversion of strings to numbers to a + b strikes me as not
good, however.

steve d.