Optics are a functional programming toolbox for zooming into nested data structures. They are designed for composability, allowing you to create co...
For further actions, you may consider blocking this person and/or reporting abuse
Really cool stuff! One way that I've blended
io-ts
andmonole-ts
together is the use of the.is
function inio-ts
to replicate pattern matching in Haskell or OCaml. That helps especially in Prisms. So, for example...Here,
is
is a primitive type of pattern matching that does the job both at runtime and at compile time (this is compile safe in typescript).Cool post! These are indeed cool TS libraries, thanks for spreading the word!
But oh boy, how syntactically awkward is that compared to Haskell... 😃