By bloid
via erikengbrecht.blogspot.com
Published: Jul 15 2008 / 16:51
Ever since I started using Scala, I've had somewhat of a love-hate relationship with type inference. On the local level, type inference can make code much more concise, easier to read, and easier to refactor. It makes code easier to read because in cases where the type of variable is obvious, type annotations just add noise that distract from the meaning of the code.
Add your comment