News for hackers. Stuff that matters.
Re:Rust Is a Scalable Language by vips7L on Wednesday March 29, 2023 @01:12PM (#35360173)
C# tends to have this problem with multiple ways to do the same thing. Look at construction:

    var a = new A();
    A a = new();
    A a = new A();
Re:Rust Is a Scalable Language by schemescape on Wednesday March 29, 2023 @06:09PM (#35364534)
When did that second one get added?

I haven't written C# in a while, but I don't remember seeing that one. I skimmed the C# grammar and didn't see it there either, but I only glanced and might have missed an entire section.

Re:Rust Is a Scalable Language by vips7L on Wednesday March 29, 2023 @07:01PM (#35365108)
C# 9.0: https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/cs...

I'm honestly surprised they haven't add the ability to drop the `new` keyword like Kotlin:

   val a = A();
Re:Rust Is a Scalable Language by schemescape on Wednesday March 29, 2023 @09:17PM (#35366434)
For anyone else who’s curious, these seem to be called “Target-typed new expressions”.