Y
Hacker News
new
|
ask
|
show
|
jobs
by
masklinn
1990 days ago
That doesn’t actually work unless you first fill all possible values with `false`.
1 comments
fileeditview
1990 days ago
Wrong. The whole point of this construct is that in Go maps return default values for keys that do not exist. The default value for bool is false.
link