sbernheim4/excoptional
View on GitHub ↗ ★ 11 HTML
A fully typed, zero-dependency implementation of the functional programming Option object for JavaScript and TypeScript
6 mentions on Hacker News by 1 person: 2 stories, 4 comments · first 2021-08-19 · latest 2023-07-07
20082026
-
…exist and other languages like Rust and Scala support the Option data structure natively. [0] https://github.com/sbernheim4/excoptional
comment by bern4444 · 2023-07-07 · in TypeScript please give us reflection/runtime types -
…LOC to define one for JS, depending on how many convenience methods you want. Here's one I wrote: https://github.com/sbernheim4/excoptional I fully believe it to be the best Option implementation for JS/TS
comment by bern4444 · 2022-01-21 · in From ES6 to Scala: Basics -
….orElse(fn3ReturnsOption()) .orElse(fn4ReturnsOption()) .getOrElse("val"); [0] https://github.com/sbernheim4/excoptional/blob/main/src/inde...
comment by bern4444 · 2022-01-03 · in Understanding the Power of Lisp (2020) -
…of the Option object and the readme has lots of specific examples about these benefits: https://github.com/sbernheim4/excoptional and a few blog posts on these ideas[0][1] [0] https://sambernheim.com/#/blog/the-engineers-schrodingers-ca...…
comment by bern4444 · 2021-10-21 · in Functors, Applicatives, and Monads in Pictures (2013)