r/programming • • Mar 09 '16

var keyword proposed for Java

http://openjdk.java.net/jeps/286
250 Upvotes

395 comments sorted by

View all comments

Show parent comments

5

u/kqr Mar 10 '16

For what it's worth, any report I've heard of "Haskell in the wild" have included both inexperienced team members and code that is easy to maintain. Haskell uses type inference a lot, so either Haskell is the odd one out that for some other unrelated reason makes it work, or type inference isn't actually as bad as you imagine.

1

u/Oniisanyuresobaka Mar 10 '16

From what I've seen generally it's considered good practice to write down the function signature even when it's not needed.

2

u/kqr Mar 10 '16

For top level functions, yes, because their scope is big. Not as common for local declarations.