« Immutable Isolated Types Likely in Future C# | Main | C# for Systems Programming »

December 10, 2013

Comments

Jake

The monadic null checking example seems to be incomplete.

Should be something like:
if (points?.FirstOrDefault()?.X ?? -1 == 2)
..doSomething();

Vlad

Video with Mads' presentation: http://vimeo.com/84677184

The slides mention (@1:02:13) some more syntactic features: semicolon expression (??), string interpolation (hello Perl), binary literals (why not in C# 1.0?) and digit separators (Java is not all the time behind).

Jenda

Support for

public Tuple{int,int} GetCoordinates() { return Tuple.Create(X,Y); }
// there should be less than and greater than signs, but this blog eats them

var (x,y) = p.GetCoordinates();

would be dreamy. Another thing I'd very much love is some support for partial application of methods with constant parameters (http://jendaperl.blogspot.cz/2014/03/c-60-constant-parameters-and-partial.html)

nobody

na this would be apparently dreamy
im told this is like so impossible to sugarize

public int get(int i){}
public float get(int i){}

this is peachy

public void get(int i , out int r){}
public void get(int i , out float r){}

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name is required. Email address will not be displayed with the comment.)