4 ms·
Map-style iteration carries more semantic information than a C-style index based loop. An index based loop might be doing anything with the data being iterated
by nemetroid 9y ago
Map-style iteration carries more semantic information than a C-style index based loop. An index based loop might be doing anything with the data being iterated over. When you do collection.map, already at first glance you get an idea about what the code is doing.
- jstimpfle 9y agoYep - and nobody cares. Write clean code instead. Much harder than simply changing the looping style.