[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Does Lua have a Roadmap?
- From: Italo Maia <italo.maia@...>
- Date: Mon, 19 Jun 2017 19:22:28 -0300
This behavior is called String Coercion.
Thanks, Edu, I'm aware. The thing is that this implicit coercion is a weakly typed language behavior for what I know. "Usually" not a good thing. See this example:
'5' * 5 # one could expect it to create a string with five 5 characters. In lua, it gives you 25
So, I can compile lua to not allow the string + number operation? Is that it? Nice to know. Seems an interesting approach for embeded devices. Was that your use case?
Parke, I too believe a roadmap is a great way to align expectations. Knowing what is to come is very helpful on the long run. VERY!