(no title)
minus7 | 3 months ago
The closure compiler flag trick looks interesting though, will give this a spin on some projects.
minus7 | 3 months ago
The closure compiler flag trick looks interesting though, will give this a spin on some projects.
reader_1000|3 months ago
unscaled|3 months ago
If, let's say, http.Client was functionally immutable (with all fields being private), and you'd need to have to set everything using a mutable (but inert) http.ClientBuilder, these bugs would not have been possible. You could still share a default client (or a non-default client) efficiently, without ever having to worry about anyone touching a mutable field.
Mawr|3 months ago
Subtle linguistic distinctions are not what I want to see in my docs, especially if the context is concurrency.
saturn_vk|3 months ago
kiitos|3 months ago
there is this whole demographic of folks, including the OP author, who seem to believe that they can start writing go programs without reading and understanding the language spec, the memory model, or any core docs, and that if the program compiles and runs that any error is the fault of the language rather than the programmer. this just ain't how it works. you have to understand the thing before you can use the thing. all of the bugs in the code in this blog post are immediately obvious to anyone who has even a basic understanding of the rules of the language. this stuff just isn't interesting.
lenkite|3 months ago
Which PL do you use then ? Because even Rust makes "Subtle linguistic distinctions" in a lot of places and also in concurrency.