C# 7.0 – an X++ developer’s dream coming true?
|
|
Today I attended an excellent TechTalk on C# 7.0 by Mads Torgersen at a full house in Microsoft Development Center Copenhagen.
As the talk unfolded I was struck by Déjà vu– this is not the first time I've heard Mads present a new feature in C#, that I've been using for a long time. Last time it resulted in two blog posts:
This time Mads presented a handful of new features, 3 of which X++ already has. Granted, the X++ variants of these are not as powerful, and not as complete. Yet, the intentions are the same:
|
Here are two implementations using these capabilities – one is X++ one is C#. Can you spot which is which?
|
public void foo() var arr = new int[] {4, 8, 15, 16, 23, 42}; |
public void foo() private container tally(container arr) |
As you may have read in my series of blog posts on X++ in AX7, it is obvious that X++ is moving in the direction of C# - seeing C# moving in the direction of X++ is not something I had seen coming – but it is very welcome!

Like
Report
*This post is locked for comments