6 ms·
I get your point. But even in non-mathy business software, data structure access is so much more convenient in languages with an overloadable index operator: C
by codeflo 6y ago
I get your point. But even in non-mathy business software, data structure access is so much more convenient in languages with an overloadable index operator:
C#: foo[index] = bar[index];
Java: foo.put(index, bar.get(index));
- whatshisface 6y agoThat is a very good point that I hadn't considered, because I was thinking about Go. In Go, the builtin data structures are compiler special-cases, so you get the index behavior on the map structure. Of course, it starts looking like Java for anything more advanced, but the ethos of Go is to not use anything more advanced.