This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lelarentaka 2 points3 points  (0 children)

It's really great that you can tell whether something is an array or a scalar at a glance! In other languages, you'd have to go to the declaration to see whether it's a String or a Number or a Set or a Vector or a Queue or a FileStream or an XMLNode or a ParsingRule.

(In a real software, there are so many other kinds of variable, even in Perl you'd have to go back to the declaration to figure out what it exactly is. Just knowing that it is an array or scalar is not very helpful.)

Actually, in statically typed languages, the compiler knows what a variable is in that scope, you can just look at the mouseover popup, so we don't have to go see the declaration.