3 ms·
While I agree to an extent, the reason for this is not entirely bad. The len function is basically a contract that the result you get will be an integer. An o
by CuriouslyC 9y ago
While I agree to an extent, the reason for this is not entirely bad. The len function is basically a contract that the result you get will be an integer. An object could easily have a `.length` property that is non-integer, like a line/interval for instance. Think of this as a clunky response to a lack of type information in the language proper.