News for hackers. Stuff that matters.
Re:JavaScript Temporal Is Coming by CharlieDigital on Thursday January 30, 2025 @09:44AM (#42878175)
It's going to end up looking a lot like C# [0][1]; these two/three (JS/TS, C#) languages have been converging for a while now. Now just waiting for C# to get official first party discriminated unions!

[0] https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...

[1] https://timdeschryver.dev/blog/pattern-matching-examples-in-...

Re:JavaScript Temporal Is Coming by adabyron on Thursday January 30, 2025 @09:29PM (#42884225)
Just an FYI for those unaware TS & C# are both creations of Anders Hejlsberg & his colleagues at Microsoft. Both are some of my favorite languages as well.

We would all benefit if JS was more like C# in my opinion.