News for hackers. Stuff that matters.
Re:The Advantages of Flexible Typing by kbr2000 on Sunday September 19, 2021 @03:51AM (#28582516)
I'd say the idea is that the implementation of a command/procedure needs to do the checking. In your example, arithmetic addition is usually provided by expr [0], which checks the expression it is fed before trying to calculate anything.

When you would like to concatenate strings (including numbers), you would use quoting or commands/procs made for that purpose instead.

[0] https://tcl.tk/man/tcl/TclCmd/expr.htm

There are no comments on this comment yet.