2 ms·
Go is copy by default. That means it would work if *bool is possible but it's not.
by h4ck_th3_pl4n3t 1y ago
Go is copy by default.
That means it would work if *bool is possible but it's not.
- giancarlostoro 1y agoIf they did it without you explicitly making bool a pointer, then it would be syntactic sugar and it would kind of fall away from the spirit of Go which is, if you look at a file everything that's happening is known to you, there's no metaprogramming witchcraft anywhere in sight usually.