|
|
|
|
|
by cgag
2399 days ago
|
|
I used to be a Haskell type and now enjoy Go greatly for this reason. There was a thread on the Rust reddit where someone was asking how to do something relatively simple using some elaborate combination of map/reduce/filter/continuations/who-knows-what, and someone said "just use a for loop", and the OP was enlightened. People don't know how great the burden of trying to model their problem to fit a fancy language is until it's gone. I didn't. I want generics and sum types, but I miss them less than I would have predicted. |
|
(Also, rust’s for loops are implemented in terms of iterators; they’re actually the more primitive construction in a language sense; a while loop with the Iterator library API.)