April 15, 2005
Autoboxing Lists into Arrays
I'm having a blast playing with the new Generics in Java 1.5. Being able to parametrize your types truly fucks with your vintage Java habits, which feels a bit like learning a better way to breathe.
Now that Collections have become so inherently nice, I'd really like to prefer List<Foo> over Foo[]. For most purposes, Lists are about a trillion times more fun to use. Unfortunately there are also a trillion pre-1.5 APIs demanding to be fed with arrays, which makes me brood over the best diet for my own classes.
I wonder if there should be an effort to have Java autobox Lists into Arrays and vice versa? There is already a plugin for IDEA that assists you with the manual conversion procedures, but I'd really enjoy seeing this supported natively.
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)