Comment by badsectoracula
2 hours ago
> Yes, just use and IDE
The best the IDE can do is display a tooltip or something like that which is cumbersome when reading the code because you need to move over everything to figure out what the types are. And sometimes for whatever reason even that fails.
And this is only useful in the context of using an IDE: code can be found outside IDEs too, even if all you do is use an IDE for your development (not everyone does), the code can still be found in patch files, pull requests and code review platforms none of which have any IDE functionality to know what the types are.
> There’s no reason to repeat type definitions. If you can use auto, what that means is the type is already statically known
I'm not a compiler though.
No comments yet
Contribute on Hacker News ↗