Strawman: `Function.prototype.try` (or `Function.try`)
dante federici
c.dante.federici at gmail.com
Tue Aug 22 18:47:17 UTC 2017
There exist lots of libraries that give this sort of functionality among
others in the functional community -- lots of Either or Maybe
implementations.
I don't think this is a healthy addition to the spec since you would then
want to consider all the other monadic goodies like mapping over these
values, folding, "all" and "some", etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170822/c813c061/attachment.html>
More information about the es-discuss
mailing list