3 ms·
That's okay if you're just writing for yourself. But the next person reading your code might never have used traverse and won't get it. Then this becomes a que
by skybrian 3y ago
That's okay if you're just writing for yourself. But the next person reading your code might never have used traverse and won't get it.
Then this becomes a question of what sort of common language we should expect of programmers. That's always going to depend on context.
Here are some people trying and mostly failing to explain what 'traverse' does:
https://stackoverflow.com/questions/7460809/can-someone-explain-the-traverse-function-in-haskell https://stackoverflow.com/questions/7460809/can-someone-expl...
- themk 3y agoIf you use a language which has monads, then these things quickly become second nature. traverse, sequenceA, etc are all sorely missed when I use rust, as they are quite fundamental in languages which allow the abstraction. It honestly provides so much for free when using a new library.