No need to scroll. If you use a modern ide you can just hold Ctrl and hover the variable with your mouse.
Re:Parse, Don’t Validate
by DonaldFisk on Thursday November 07, 2019 @09:57PM
(#21479635)
That still wouldn't work for dynamically typed languages.
Re:Parse, Don’t Validate
by squeaky-clean on Thursday November 07, 2019 @10:38PM
(#21479784)
Maybe not something like Lisp but languages such as JS, Python, and Ruby have advanced enough tooling available that would easily identify this.
Re:Parse, Don’t Validate
by marcosdumay on Friday November 08, 2019 @07:42AM
(#21481701)
That's why the claim that it's an advantage of statically typed languages.
I apply a variant of Apps Hungarian in my own code, e.g.
(In the system this is lifted from, node was confirmed to be a Vertex a few lines earlier, and Output is a subclass of Socket.)The general idea is language independent: you could write similar code in Java or C.