2 ms·
This is a good argument for having argument types declared for functions and structures, but inferring as much else as possible. The trouble with inferring eve
by Animats 6y ago
This is a good argument for having argument types declared for functions and structures, but inferring as much else as possible.
The trouble with inferring everything is someone reading the functions has no idea what the restrictions are. The classic Python example involves "lists" (built-in arrays) vs NumPy arrays. They implement most of the same operators and functions, but with different semantics. For built-in arrays, "+" means concatenate.