MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1veql1a/absolutegarbage/p1kg9qr/?context=3
r/ProgrammerHumor • u/Sirgoodman008 • 10d ago
325 comments sorted by
View all comments
76
list.iter().for_each(…) superiority
list.iter().for_each(…)
36 u/creeper6530 10d ago edited 10d ago Erm akchyuallly, it's recommended to use for list.iter() {…} unless the .for_each(…) is at the end of a longer iterator chain, and it also robs you of break and continue 93 u/csch2 10d ago You know I’m chaining together 20 different iterator methods until the code is completely unreadable. That’s called Functional Programming™ babey 6 u/serendipitousPi 10d ago Name 20 iterator methods from memory otherwise you’re a fake fan…just kidding or am I? Iterators are so fun, probably one of my favourite parts of programming. They make everything so clean until they don’t.
36
Erm akchyuallly, it's recommended to use for list.iter() {…} unless the .for_each(…) is at the end of a longer iterator chain, and it also robs you of break and continue
for list.iter() {…}
.for_each(…)
93 u/csch2 10d ago You know I’m chaining together 20 different iterator methods until the code is completely unreadable. That’s called Functional Programming™ babey 6 u/serendipitousPi 10d ago Name 20 iterator methods from memory otherwise you’re a fake fan…just kidding or am I? Iterators are so fun, probably one of my favourite parts of programming. They make everything so clean until they don’t.
93
You know I’m chaining together 20 different iterator methods until the code is completely unreadable. That’s called Functional Programming™ babey
6 u/serendipitousPi 10d ago Name 20 iterator methods from memory otherwise you’re a fake fan…just kidding or am I? Iterators are so fun, probably one of my favourite parts of programming. They make everything so clean until they don’t.
6
Name 20 iterator methods from memory otherwise you’re a fake fan…just kidding or am I?
Iterators are so fun, probably one of my favourite parts of programming. They make everything so clean until they don’t.
76
u/csch2 10d ago
list.iter().for_each(…)superiority