News for hackers. Stuff that matters.
Re:Trying Out Generics in Go by hmmdar on Thursday December 16, 2021 @04:51PM (#29584465)
The only time `IsSet` would be false is when `NewOption` was not used to initialize the value.

e.g.

  var o Option[int32]
or could have `None` helper

  func None[T any]() Option[T] { return Option[T]{} }

  o := None[int32]()

There are no comments on this comment yet.