(I'm giving up with the numbering now, unless anyone particularly wants me to keep it up. What was originally going to be a limited series appears to be growing without end...) As Chris Nahr pointed out in my previous post , my earlier idea about staged initialization was very half-baked. As he's...
Iterator blocks have an interesting property: they defer execution. When the method (or property) is called, none of your code is executed - it only starts running when MoveNext() is first called. Deferred execution is a great thing in many ways, but it's a pain when it comes to parameter checking...
[Edit: fixed the not-ready-for-publication problems] There seems to be more than few people blogging about what they hope C# 4 will do for them. I haven't seen one that really synchronizes with my thoughts, so I'd thought I'd post my own list. Variance A good story with regard to variance...
As per previous posts, I've been thinking a fair amount about how much it's reasonable to keep progressing a language. Not only have thoughts about C# 4 provoked this, but also a few other sources: Don Box on Ted Neward on Java (yes, two separate links - but view both) Don again on the "doneness"...
The final part of this little series is the one where I suggest my own ideas for C# 4, beyond those I've already indicated my approval for in earlier posts. Before I talk about individual features, however, I'd like to put forward a manifesto which could perhaps help the decision-making process...
Ian Griffiths mailed me about macros, and explained how LISP macros were very different to C/C++ macros, working at a language level instead of at a text level. I won't pretend to understand all about what would be possible and what wouldn't, but Ian gave a good example: query expressions in...
Microsoft haven't committed to anything in C# 4 yet. However, there have been hints about what they've been considering in Eric Lippert's blog , and more than hints in Charlie Calvert's blog . There's not a lot to go on yet, but: Immutability support Most of Eric's posts about...
There has been a fair amount of speculation online about what should be in C# 4. I've taken the list below from a few posts, primarily those by Ayende and Jeremy Miller . I've deliberately left out the ideas that Microsoft have mentioned that they're at least considering - they'll come...
Everyone else is speculating about what's going to be in C# 4 (and various possibilities are coming out of MS), so I thought it would be wise to start my own series of wishlist posts before I miss the boat completely. In this first post, I'm not going to look at the future at all - I'm going...