4 ms·
> Type inference: Being able to say: > var foo = Foo(); I don't want that in my Java. A developer we used to have used the 'val' feature of Lombok to implemen
by ionised 10y ago
> Type inference: Being able to say:
> var foo = Foo();
I don't want that in my Java.
A developer we used to have used the 'val' feature of Lombok to implement type-inference in a lot of the repos he was responsible for and we took a collective decision to remove every last instance of it from the code base.
- kartickv 10y agoI don't see the problem — look at the right-hand side of the expression to find out the type. Swift does it very well. It helps, not hurts, readability.
- deleted 10y ago[deleted]