News for hackers. Stuff that matters.
Re:Down the Golang Nil Rabbit Hole by pishpash on Tuesday March 30, 2021 @03:03PM (#26638885)
Not necessarily. It's suggested as a way to maintain the typing decision the original parent made, but which itself is undesirable. The pattern can be changed to,

  func main() {
      var c Compressor  // signal do nothing
      DoCompress(c)
      c = &GZipComprosser{}  // normal call
      DoCompress(c)
  }

There are no comments on this comment yet.