Hacker News new | past | comments | ask | show | jobs | submit login

>>I hope we won't infer types this way for method parameters

No, it doesn't. From TFA: "This treatment would be restricted to local variables with initializers, indexes in the enhanced for-loop, and locals declared in a traditional for-loop; it would not be available for method formals, constructor formals, method return types, fields, catch formals, or any other kind of variable declaration."

Which is pretty much how C# does it.

I gather that it's common for functional languages to infer pretty much everything for you most of the time, which I think would actually be nice. But presumably that's either difficult or impossible in Java.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: