Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2021 (3)
20082026
  1. …exist and other languages like Rust and Scala support the Option data structure natively. [0] https://github.com/sbernheim4/excoptional
  2. …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
  3. ….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)
  4. …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...…
  5. ▲ 5
    Show HN: An Option Object for JavaScript and TypeScript
    story by bern4444 · 2021-08-23 · 5 comments
  6. ▲ 1
    Show HN: An Option Object for JavaScript and TypeScript
    story by bern4444 · 2021-08-19 · 1 comment