3 ms·
The type declarations are there for maximum clarity, since the inferred types may not be obvious to the target audience
by brundolf 6y ago
The type declarations are there for maximum clarity, since the inferred types may not be obvious to the target audience
- jdmichal 6y agoYes, please. One of my biggest peeves are posts that are meant to be educational, but yet don't define the types used for variables nor define the namespace / package they are from. Java posts are rife with the latter, and I'm really not looking forward to the `var` keyword making the former a thing too. And quite a few get bonus points for doing such on types that require a new dependency -- but good luck figuring out which dependency without knowing the dependency name nor the package name of the class!
- mywittyname 6y agoYou did it right, IMHO. The parent comment just confuses me while your article was quite clear.