F# – Referential equality for tuples, discriminated unions and records

By default, tuples, discriminated unions and records have what is known as structural equality – i.e. if two instances of these types have the same set of values then they are considered equal, just like value types – despite being reference types: Tuples Discriminated Unions Records To facilitate this form of equality, the F# compiler …

F# – Referential equality for tuples, discriminated unions and records Read More »

F# – Use Discriminated Unions instead of class hierarchies

When you consider the age old problem of representing different shapes (circle, triangle, square, rectangle, etc.) my OO fed developer brain naturally jumps to a class hierarchy along the line of: This is perfectly fine and legit, but it’s not the only way to approach things. Since I’ve been on a more varied diet of …

F# – Use Discriminated Unions instead of class hierarchies Read More »

Can you solve the google puzzle?

You can find the google puzzle here, it’s extremely cool and equally frustrating! That’s half an hour of my life I won’t be getting back but at the end of it well satisfied to have solved it! Enjoy!

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close