Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Mads Torgersen [MSFT]

Mads Torgersen [MSFT] Mads​Torgersen

Niner since 2012

I am the Program Manager for the C# language at Microsoft. I maintain the language specification and drive the design of new versions of C#. I also contribute to the design of VB.NET and TypeScript.

  • What's New In C# 6.0

    @Akos: Yes, the example now checks for null twice.

  • What's New In C# 6.0

    @Moemeka: The $index feature got dropped. It got a pretty ambiguous reception, and we had doubts about whether it was the right way to go about things.

  • What's New In C# 6.0

    Hey, I fully understand the concern that new short hands can lead to more convoluted code. There are many short hands we could consider adding to C#. We are extremely careful to only add ones that we think lead to more clarity in common code.

    With any new opportunity to compact code, there's going to be people eager to overuse it. It's a bit of an organizational challenge to establish what good code looks like, and how these new features can be used responsibly, in a way that fits the culture of the company.

    That said, we don't feel we have a choice but to evolve the language to improve developers' productivity and better meet new challenges. We try to take a balanced approach, so that C# can keep growing for a long time without collapsing under its own weight. But grow it will.

    Thanks for all the wonderful comments, both good and bad ones!

  • Anders Hejlsberg: Introducing TypeScript

    @FZ14: You wish for jQuery to be ported to TypeScript.

    I just want to point out that you don't actually need to port existing libraries to TS in order to get a strongly typed experience consuming them. TS let's you write "declare files" that describe a typed view of existing code, so that you can get IntelliSense and type checking against them when you consume them from TS.

    The TypeScript site contains several examples of this on the "Run it" tab. For instance, the "JQuery Parallax Starfield" sample contains a "jquery.d.ts" file that does this for jQuery. Check it out!

    Our hope is that authors of JS libraries will also author .d.ts files for them. If you write your library in TypeScript, the TypeScript compiler can also generate a .d.ts file for it, along with the JS.

    As a matter of fact I wouldn't be surprised if some JS (not TS) editors would start picking up .d.ts files so that they can offer better tool support even for vanilla JavaScript programs that consume those libraries Smiley.