'None' is represented as a null reference, so this is By Design.

See e.g. 'types with null as a representation value' in the spec:

[link:research.microsoft.com]

By on 11/12/2009 8:54 AM ()

Thanks for clarification.

I think it is very confusing, at least for me. If it is really a null then it should behave as null and not as an object...

Why not to give None an expected behavior, i.e. the same as for Some?

ps: Take my ideas as ideas from a non-professional

By on 11/13/2009 10:12 AM ()

What do you mean by 'does not work'? It behaves correctly for me.

By on 11/12/2009 6:38 AM ()

Nevermind my last post. I see what you're talking about. I think this might be a bug in the IL generated when FSharpOption overrides ToString().

By on 11/12/2009 6:42 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper