News for hackers. Stuff that matters.
Re:Const all the things? by Jenk on Monday January 24, 2022 @10:48AM (#30059076)
Then async comes along and you can't use `out` in async methods :)

Thus (anonymous) tuples were introduce so we can do it Go/Rust-style:

    async Task<(bool, T)> Foo<T>(T value) {
        /* do something async like a web request or file read etc. */
        var aThing = await GetAThing<T>(value);
        return (aThing != null, aThing);
    }

There are no comments on this comment yet.