News for hackers. Stuff that matters.
Re:Using the switch(true) pattern in JavaScript by shhsshs on Monday April 12, 2021 @07:23PM (#26786387)
C#’s new syntax for `using` also helps:

Old:

    using (var file = OpenFile())
    {
        // use file
    }
New:

    using var file = OpenFile();
    // file will be disposed when it goes out of scope

There are no comments on this comment yet.