CSharp 3.0 Features

From Nemerle Homepage

Contents

Intro

Microsoft has released a specification for C# 3.0. We thought it would be funny to compare what they are planning with what we have already in Nemerle.

Implicitly typed local variables

This was in Nemerle since the very beginning. We however do not limit ourselves to the case when the type of initializer expression is known in detail (or to be precise, if known at all).

Extension methods

An issue reported in the tracker. They are already fully implemented.

Lambda expressions

Again, this was in Nemerle since the very beginning. The restrictions on parameter inference don't apply.

Object and collection initializers

We have the Record macro, though this seems somewhat nicer. Will have to investigate.

Anonymous types

Our tuples are more like tuples in math -- the fields don't have names, only numbers. It is an open issue which design is better.

Implicitly typed arrays

No kidding.

Query expressions

This seems like a set of macros. Will have to investigate.

Expression trees

This seems like this is needed only for query expressions. Macros (and specifically quotations) are much more general and powerful mechanism.

remember
You are very welcome to contribute to the documentation here!