5 ms·
This change would mark a turn in the language's evolution, as it would be the first implicit variable to be added to the language. I'm not going to invoke the
by zimbatm 2y ago
This change would mark a turn in the language's evolution, as it would be the first implicit variable to be added to the language.
I'm not going to invoke the slippery slope argument, but what distinguishes Go from the pack is how explicit it is. It can make it more tedious to write, but also much easier to follow as a reader.
- zemo 2y agothere's some precedent in the direction of adding predeclared identifiers for error handling: the identifier `error` was originally not predeclared, you had to import it from `io` (or maybe `os`?) and refer to it as `io.Error` everywhere.
- pjmlp 2y agoIt is not more explicit than C, Pascal, JOVIAL and many other predating it for decades.