Idea: Reimagine given current and future proposals #55
chriskrycho
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context: @bmakuh and I have been talking about this privately for some time. This library will not—repeat, will not—be going anywhere. This proposal would be a parallel in addition to True Myth proper, not a new version of this library.
There are two major language features which have already landed in JavaScript and one which looks likely to land in the next year or so.
?.
and??
operators|>
operatorThere are also some performance concerns in sufficiently large apps, where memory pressure starts to be a problem, with the current implementation of
Maybe
in particular. (Nearly everything that follows isMaybe
specific, because there's no way to make these kinds of simplifications for Result, unfortunately.) It would be extremely useful in these contexts for there to be a functional-only approach which lets?.
and??
do some of the work we have historically needed tools likeMaybe
for, in combination with combinators for transforms.What should they be? What would a minimal, extremely high-performance
Maybe
implementation look like given the new language features? Can we/should we assume|>
lands at some point?Beta Was this translation helpful? Give feedback.
All reactions