[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Does Lua have a Roadmap?
- From: nobody <nobody+lua-list@...>
- Date: Tue, 20 Jun 2017 00:04:45 +0200
On 2017-06-19 23:49, Italo Maia wrote:
(1) '5' + 5 gives you an 10.0 in the interactive console. Isn't this a
weakly typed language behavior?
(2) '5' + 5 > 10.0, string plus integer equals float. If an error was throw
here, it would be easier to understand than the given behavior.
(And yes, I've used that a bunch of times. But I also occasionally use
the implicit conversion -- both have their uses.)