News for hackers. Stuff that matters.
Re:Fun facts about Rust's growing popularity by pjmlp on Monday October 30, 2017 @08:46AM (#15584570)
You can simulate something like that using lambdas in C#.

Something like

    withLock(counter, (num) => {
       return num + 1;
    });
or in alternative,

    withLock(counter, (ref num) => {
       num++;
    });

If C# allowed for trailing lambdas it could look better.

There are no comments on this comment yet.