4 ms·
0 based indexing sure is a harmful and needless source of cognitive overhead in most cases, I would be nice to have a list/wiki of all common yet considered har
by The_rationalist 6y ago
0 based indexing sure is a harmful and needless source of cognitive overhead in most cases, I would be nice to have a list/wiki of all common yet considered harmful language constructs/behaviors.
That would give us a clear view of what a new language optimized for brain speed and accuracy would looks like
- recursive 6y agoSeems quite natural to me. Who determines what's overhead? To me, 1 indexing is more mental effort.
- The_rationalist 6y agoHumans, including devs, thinks in english. You think "take the first element of the list" not "take the zeroth element" Cognitive overhead can often be formalized as a mismatch between mapping the syntax (here zero based indexing) to the intended meaning.