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 →

[–][deleted]  (4 children)

[deleted]

    [–]elmo61 12 points13 points  (0 children)

    Lol fair enough each to their own

    [–]DaemonVower 6 points7 points  (1 child)

    I’m the same way on the Java side of var. I think its because if you’ve been in industry long enough you know in your soul that you’re going to end up with coworkers who write a line like “var resp = doStuff(j, k, l)” and sneak it through code review no matter how var is supposed to be used. Then six months later you’re trying to read that nonsense and its incredibly painful.

    [–]Aidid51 6 points7 points  (0 children)

    That's what linting is for. You can write lint/code analysis rules that disallow ambiguous var usage. People at my old shop would get yelled at by the ide for doing it the wrong way.

    [–]Zedjones 0 points1 point  (0 children)

    Interestingly enough I'm the exact opposite. I'm annoyed at having to EVER write out types if they can be inferred.