Quantcast
Viewing latest article 13
Browse Latest Browse All 45

Comment by Rei Miyasaka on How to do argument validation of F# records

Ten years later, my use case today: normalizing a line segment so that the point to the left is first. I could do it in the constructor and guarantee that it's correct, or I could check every time. But you're right, it's surprising how rarely I've felt the need to do this in the past ~15 years.

Viewing latest article 13
Browse Latest Browse All 45

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>