News for hackers. Stuff that matters.
Re:Update to the .NET Language Strategy by cglong on Wednesday February 08, 2023 @07:54PM (#34718179)
Where does TypeScript fit into this? It's a wildly successful language from Microsoft that's also interpreted but doesn't use the CLR.

Disclaimer: I work at Microsoft, but not in the Developer Division.

Re:Update to the .NET Language Strategy by zengid on Wednesday February 08, 2023 @09:00PM (#34718780)
Great question because I think TypeScript is the future in terms of a web stack. With the 'metaframeworks' (not just the ones from Meta, winky face) all moving towards a Server Side Rendering paradigm, I feel like a full-stack TypeScript world just makes so much more sense in terms of developer productivity.

I also use TypeScript every day, and I absolutely love it. I feel like the power and flexibility of it's type-system are incredible tools for an industry programmer. I think TypeScript is going to get more mileage for me personally and I'll reach for things like C# less and less, because it feels like it's not keeping up with where the web industry is going. (Who knows, maybe they will dust off ASP.NET MVC and ditch Razor pages for some kind of .tsx like experience. A dev can dream..)

Re:Update to the .NET Language Strategy by CharlieDigital on Thursday February 09, 2023 @07:15AM (#34722820)
Start a petition for T#.

Merge C# and TypeScript.

I want my C# pattern matching in TypeScript and TypeScript's fluidity in C#.

Simplified initialization in C# without new(). Unless otherwise specified, use a default generic Dictionary<T,U> and infer the types for map initialization like:

    var x = { ["a"] = 1 };
Instead of:

    var x = new Dictionary<string,int> {...};
Then automatic type mapping and conversion utilities to objects:

    record class Rec(string a, int val);

    var k = x as (Rec)
(Yes, can already be done with implicit type conversion operators or writing utility classes, but making it more like TypeScript would just make it easier to adopt)
Re:Update to the .NET Language Strategy by zengid on Thursday February 09, 2023 @10:38AM (#34725519)
This is exactly what I dream of. Expressivity and flexibility of TypeScript, but with built in pattern matching.
Re:Update to the .NET Language Strategy by hoofedear on Thursday February 09, 2023 @07:05PM (#34733617)
Let’s get started then! I’m digging this T# idea