I completely agree with the question on covariant return types. When I met Anders at the PDC bookstore I really tried to get the message across and I've been pushing the request for a long time (as have numerous other people in the community).
When can we have a downloadable document about the C#4 language? There is already one for C#3. I am looking forward for a downloadable document for C#4.
var xml =@"<Users> <User>user1</User> <User>user2</User></Users>".ToXML();Console.WriteLine(xml.ToString());
public static XElement ToXML(this string xmlString) { return XElement.Parse(xmlString); }But that lacks two major things, compiler support and designer support. Naturally, it becomes a slippery slope of what meta languages to support as the next question becomes support for JSON and M. I think M makes this more interesting as I think we will need compiler support for that. So should M, JSON, and XML have compiler support in c#? Why or why not? Could these be opt-in/opt-out extentions to the language?