Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial to grasp the rational behind union-types #57

Open
karlhp opened this issue Jan 29, 2017 · 4 comments
Open

Tutorial to grasp the rational behind union-types #57

karlhp opened this issue Jan 29, 2017 · 4 comments

Comments

@karlhp
Copy link

karlhp commented Jan 29, 2017

Does anyone know a good tutorial to grasp the rational behind union-types so that I understand the problem they solve? I know basic functional programming with Ramda but would like to learn more about functional-frontend-architecture with flyd.
Thanks

@ericgj
Copy link

ericgj commented Jan 29, 2017

In terms of "functional-frontend-architecture", AKA the Elm Architecture, check out this section of the Elm guide. The syntax is different but the concepts are the same.

A more general tutorial I found useful, particularly coming from OOP: A functional approach to Domain Driven Design. It's F#, so again the syntax is different, but many of the concepts are the same. The bit about union and product types starts around slide 49.

@karlhp
Copy link
Author

karlhp commented Jan 29, 2017

Thanks @ericgj, this is very helpful!

@igat64
Copy link

igat64 commented Mar 11, 2018

Great article about sum (a.k.a. tagged or discriminated unions) types.

@brucou
Copy link

brucou commented Apr 10, 2018

https://medium.com/fullstack-academy/better-js-cases-with-sum-types-92876e48fd9f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants