To that I would say, quoting you:jeeswg wrote: It's very common for people to pass numbers (as strings) to SendMessage, people have been able to do this with no problem since AutoHotkey began. The InputBox scenario is an example of this.
Can you provide examples? Even if it has been done, is it a good practice? String type is string type,int type is int type, and depending on a program to automatically switch back and forth is not guaranteed to prevent bugs.I'm not aware of anyone using it this way.
I suppose it is more a feature than an inconsistency. But my point was that such a feature cannot be used to perform, as you say,- You're using the word 'consistent' to mean 'normal' (perhaps based on your own programming prejudices, something we all have). AutoHotkey is consistent. There were good reasons that AutoHotkey chose this route, maybe AutoHotkey was right.
- As was pointed out, "str"+0 causes an error in AHK v2. Anyhow, both AHK v1 and AHK v2 have some type specification and differentiation functionality, and I'm glad they do, but for most functions it's better to ignore types.
Also, at this point I don't see any argument for a programmer or program (not sure which you were referring to) to ever ignore types; AutoHotkey doesn't. It switches types, if it can, in some functions and expressions at least, probably to make it easier for beginners or in-a-hurry programmers. It is never necessary to make use of that feature. With one exception--concatenation. string := "my age is " intAge. That's handy, I'll admit. but changing it to str(intAge) isn't much loss.introducing greater consistency...an aim and strength of AutoHotkey v2
Wishing all a good day.