Re:Carbon Language: An experimental successor to C++
by wtetzner on Thursday July 21, 2022 @08:15PM
(#32186933)
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.
Re:Carbon Language: An experimental successor to C++
by xigoi on Friday July 22, 2022 @04:26AM
(#32189819)
I agree, but explain that to programmers who think parametric polymorphism is too complex.
The real solution is [] for generics and something else for indexing.