Enumerated types allow for clearer code and more compile time checks as well as being easy to pattern match with the match keyword.
Hope you enjoyed the video!
Check out this code here:
https://github.com/engineer-man/youtube-code/tree/master/082
Join my Discord server to chat with me:
https://discord.gg/engineerman
Check out some code on my GitHub:
https://github.com/realtux
https://github.com/engineer-man/youtube
Come visit us on Reddit:
https://reddit.com/r/engineerman
Other Social:
https://twitter.com/_EngineerMan
https://www.facebook.com/engineermanyt