4 ms·
Are transducers really stateless? Decoders and transducers that perform grouping operations need to keep some state.
by danidiaz 11y ago
Are transducers really stateless? Decoders and transducers that perform grouping operations need to keep some state.
- tel 11y agoThey 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.