News for hackers. Stuff that matters.
Re:Golang: Know Your 'Nil' by stouset on Tuesday March 30, 2021 @10:17PM (#26642829)
Which is simpler?

    if (ptr == null) {
        return nil, fmt.Errorf("bad");
    }

    val := *ptr
or

    let value = ptr?
If `?` is unacceptable complexity, how on earth do you deal with functions—or, even worse—control flow keywords?

There are no comments on this comment yet.