6 ms·
Using function call syntax for array indexing always made sense to me. Functions are mappings from inputs to outputs, and arrays are mappings from indexes to va
by wtetzner 4y ago
Using function call syntax for array indexing always made sense to me. Functions are mappings from inputs to outputs, and arrays are mappings from indexes to values.
- xigoi 4y agoI agree, but explain that to programmers who think parametric polymorphism is too complex.
- int_19h 4y agoGiven that one of the languages that historically used the same syntax for array access and function invocation since day one is BASIC, I would dare say that it's not a complicated concept.