3 ms·
It is deeply idiomatic in the language.
by tptacek 4y ago
It is deeply idiomatic in the language.
- IshKebab 4y agoBut only because there's no `contains` function!
- ignoramous 4y agoIf perl has taught us anything... 3 ways to do something is worse than 1.
- peoplefromibiza 4y agowhat `contains` what? you could write this in Go if m[key] { } the comma ok idiom simply lets you distinguish a "zero" value from a missing value.