I am wondering what others came up with to work with Nullable <T in F #. I want to use Nullable <T> for data types so that serialization works correctly (i.e. Doesnβt write out the option type F # in XML). But I do not want my code stuck in the fight against the ugliness associated with Nullable <T>. Any suggestions?
Is it better to use active templates for a direct match with Nullable, or just for a converter, and use Some / None matching?
In addition, I would really like to hear ideas about eliminating null links in a good manner. If I use, I will say "string parameter", then in the end I get an option like F #, which wraps things. If I do not, I cannot distinguish between truly optional strings and strings that should not be null.
Any chance that .NET 4 will take Option <'T> to help? (If this is part of BCL, then we can see it better ...)
source share