3 ms·
I'm not a java dev, and I don't anything around introduction var into java. But I am a c# dev, and in the early days when var was introduced a lot of people av
by UK-Al05 8y ago
I'm not a java dev, and I don't anything around introduction var into java.
But I am a c# dev, and in the early days when var was introduced a lot of people avoided var because of misunderstanding of how it works. People thought it was dynamic rather than inferred, is it the same here?
- Traubenfuchs 8y agoJava does not have anything that can be used like C# dynamic. If you want to replicate it, you'd have to use several lines of reflection. See my reason for not using it above. As someone who holds no mastery over C#: Is it appropriate to ever use dynamic anywhere besides horrifying interop code?
- UK-Al05 8y agoAlmost nobody uses dynamic, but they do use var