golang / cwg

Community outreach Working Group
132 stars 21 forks source link

True/False Pointer #33

Closed KalikaKay closed 6 years ago

KalikaKay commented 6 years ago

It's a suggestion. I can't tell if this is on your list of things to do already. I bet it's easy enough. Twitter Request

dlsniper commented 6 years ago

~new(true) or new(false) seem to solve the problem described in the tweet. Or do I misunderstand this?~ Please ignore :)

campoy commented 6 years ago

hi friends,

this repo is only for community organization and outreach, your request is more suitable for the mailing list golang-nuts as a new proposal in the go repo.

PS: you could always define the function below and us a(true)

func a(b bool) *bool { return &b }
KalikaKay commented 6 years ago

You're wrong on that one - considering what community outreach looks like, but hey; congratulations on that function you got.

;)