A good first step while building a new application is to define its domain model. TypeScript offers many tools to help you in this task. Algebraic ...
For further actions, you may consider blocking this person and/or reporting abuse
Great article !
What do you think about this approach to pattern matching ?
I think it looks a bit more declarative then checking the type manually.
Check this out github.com/pfgray/ts-adt
There is a small typo and don't know if one can submit a change to a post.
The following code block declare:
Its should have been:
Are you aware of ReasonML, which have real support for ADTs and pattern matching? π
ReasonML is way more readable...
Great article, well written!
Straight and to the point, great writing.
Question, is a 'Maybe' the equivalent to a 'Option' or an 'Either' in your example?
Maybe
is equivalent toΒOption