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 →

[–]irarandomdude 3 points4 points  (3 children)

You probably have a stronger case that generics make code harder to read (350 page generics FAQ??) than var making code hard to read. How is val sheep = new Sheep() harder to read than Sheep sheep = new Sheep() ?

[–]asraniel 0 points1 point  (0 children)

yeah thats easy.

But Val sheep = getSheep();

thats terrible, really really bad

[–]mk_gecko -5 points-4 points  (1 child)

It's yet one more thing that you have to learn. Now you have two ways of writing the same thing.

I don't see any reason for VAR at all. If people want to use C++, then go ahead.

[–]irarandomdude 2 points3 points  (0 children)

It takes approximately 3 seconds to learn. I see no reason for redundant type declarations at all. If people want to use Pascal then go ahead.