F# does not support variance annotations (and ignores them in interop code) - see notes in the spec, 14.5:

[link:research.microsoft.com]

(One could imagine that a future version of F# might support them, but I think uses come up rarely even in C#, and ever more rarely in F# (since there are often fewer type hierarchies and subtyping relationships in F# code).)

By on 1/17/2010 8:35 PM ()

I disagree. This does come up a lot in C# code when dealing with IEnumerable<T>, and it does come a lot in F# code when dealing with the same thing (even more so, as, thanks to seq generator expressions, sequences are more prolific in F#).

By on 1/21/2010 2:30 PM ()
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