|
|
|
|
|
by vips7L
2093 days ago
|
|
You just need to use auto properly. auto/var/val etc are best used when you can tell the type from the rvalue. var m = new HashMap<String, List<Pair<X, Y>>>();
var m: Map<String, List<Pair<X, Y>>> = obj->someFunc();
All of the examples you have should be caught in linting or code review. |
|
I do. The problem is, others don't necessarily do. A good-in-my-world language makes it take more effort to write unreadable code than readable.
Everyone seems to only be judging languages by the code you write yourself, totally oblivious to the fact that reading and understanding someone else's code, including in projects you don't influence, is also an important part of being a software developer.