We're not really talking about full blown type inference here though,
not really. We still have full typing but we only have to declare the
type once, on the right hand side or as a method return type. I agree
that using "inference" where the type is declared on the method
declaration can be confusing, but I think that being able to just
type:
var userName = new String("Bob");
and look at that variable 20 lines down, is just as good as
String userName = new String("Bob");
You still see "userName" 20 lines down and would have to work out the
type somehow, via your IDE or just grepping the code. The type
inference discussion reminds me of the literal arguments from the
past. String literals instead of always having to type new String.
> --
> You received this message because you are subscribed to the Google Groups "Sakai Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sakai-dev+...@apereo.org.
> To view this discussion visit
https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/9f0d8ef7-1c92-44cf-bd07-e84a9b120775n%40apereo.org.