Reason #714 that I’m loving F#: Discriminated Unions

The more experience I gain with F#, the more I like it. So, when contemplating how I might convince someone to give it a try, I briefly contemplated which feature of the language might be most compelling, and quickly decided on Discriminated Unions. I’ll try to explain the value of Discriminated Unions by walking you…

sprintf and printf and printfn, Oh My!

Compile-time string interpolation is one of the many language benefits of F# that has made the language quite a joy for me to work in so far. However I have found it difficult to get all of the various *print* (read: “star print star”) methods straight in my head, and I could never find any…