Go ProSign in

This Lesson is for Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Combine Elm Union Types with Records for Clarity and Robustness

Union types are powerful, but they lack the clarity of records' member names. If a case constructor takes several values, it can be hard to identify what each value represents, and this can lead to bugs. You can combine union types with records and have the best of both worlds.

You must be a Member to view code