In this video we explore how to build simple string-backed enums in F#.
Original blog post with all links and source code: https://hamy.xyz/labs/2023-12-string-...
Chapters
04:00 - A Dictionary Solution
05:40 - Exploring other options
06:10 - String-backed Enums with Literals
Links:
Simple Interactive Islands with F# and HTMX - • Simple Interactive Islands with F# and HTMX
The State of F# (2023) - • The State of F# (2023)
F#-like records in Python - • F#-like records in Python
About me: I'm Hamilton - a Technomancer. I build Simple Scalable Systems to make the world 1% better.
Connect with me:
Website: https://hamy.xyz
Twitter: @SIRHAMY - / sirhamy
Support
If you liked this and would like to see more, consider becoming a supporter: https://hamy.xyz/labs/haminions
Supporters get:
Full source code access from courses / tutorials
Exclusive discounts on products / courses
Plus you help me to keep experimenting / sharing!