3 ms·
They produce and use state when they run (at least in the Fold transformer format), but that's a very different kind of statefulness than generators.
by tel 11y ago
They produce and use state when they run (at least in the Fold transformer format), but that's a very different kind of statefulness than generators.
- sametmax 11y ago"Stateful" doesn't mean "bad". I know functional programming is all the rage right now, but being stateless doesn't turn magically something into a better version of something stateful. If the stateful version is better integrated, have a heavier stateless version is not going to make your code better.