3 ms·
So, instead of using an import alias for the odd case where you want to name a variable the same name as the package, you will force everyone using the package
by numbsafari 2y ago
So, instead of using an import alias for the odd case where you want to name a variable the same name as the package, you will force everyone using the package to have "the java stutter": ratelimiter.Limiter, or ratelimiter.RateLimiter.
Nope. No thanks. I'll stick with aliases and keeping my variables names short depending on their "proximity of use"[1].
[1]: https://go.dev/talks/2014/names.slide#4 https://go.dev/talks/2014/names.slide#4