-
Notifications
You must be signed in to change notification settings - Fork 15
How would this interop with stateful closures? #24
Comments
See also dead-claudia/lifted-pipeline-proposal#6. Pasting from #16 (comment):
Also pasting from tc39/proposal-pipeline-operator#106 (comment) because still relevant:
From the lifted-pipeline proposal: example of syntax for simple monads. With regard to Clojure-style transducers, which comprise an example of stateful closures that lift an abstraction: jlongster/transducers.js#22 and jlongster/transducers.js#51, as a problem of extending its transducer model to the async structures from kriskowal/gtor. Also leaving here for other readers: Related on the Clojure side, Specter. (Frequently isomorphically on the Haskell side, lenses, traversables, foldables, as mentioned above.) I’ll follow up after I finish |
Thanks for the issue; sorry about the delayed reply. After talking more with Tab Atkins and Daniel Ehrenberg, we’ve decided to archive this proposal in favor of a simpler Hack-pipes proposal, which is a subset of this proposal. Feel free to open a new issue in the new repository if you think it still applies. |
To leave a particular example, how would this interoperate with stateful primitive-like operators like
distinct
orscan
? I know it's not directly related to this proposal, but if we go with my lifted pipeline strawman as an extension of this, how would it interop with them? (The current syntax offers no convenient escape hatch to break the "smart" default, instead requiring a new name to be assigned.)The text was updated successfully, but these errors were encountered: