Jason Bock

Home Biography Speaking Articles Books Music

C# 3.0 Impressions

I’ve been using C# 3.0 for a while now, and here’s what I think of some of the new features. Don’t expect long, drawn-out explanations with code examples; this is basically a brain dump :).

There. Overall I’m really happy with C#’s improvements. I’ve heard about some ideas for 4.0, and there’s some things I’d love to see, like covariance and contravariance and great immutability support. There’s also some things I’d love to see at the CLR level, primarily with Cecil-like features in Reflection, managed profiling and the ability to inject/modify code using a managed language.

Oh, one more thing I forgot about. I want tuples. Have you seen how tuples in F# make the TryXXX() patten so beautiful (go here and search for TryParse)? Amazing! Here’s an idea of how it might look in 4.0.

Published: 03.16.2008 09:05:59 AM CST