3 ms·
Automatic conversion hides type mismatches in all the program, even the parts that are not concerned with input validation and cleanup. So that makes static typ
by zimbatm 7y ago
Automatic conversion hides type mismatches in all the program, even the parts that are not concerned with input validation and cleanup. So that makes static typing a bit less useful.
As a source code reader I would much prefer to see at least a keyword or function call to make the casting explicit.
string s = cast 10; s += cast 20;
(I had the same reaction as the parent and think the language looks really cool otherwise)
- clauderoux 7y agoThank you for your comments. Actually, it is possible in Tamgu to have an explicit cast: i = int(s)+10; Each type can be used as a "function" to create the object you like, which is basically what a cast is...