One change coming in 1.5 that I wasn’t aware of: variable length argument lists. While I see the power and flexibility in this, I can’t wait until I first see code like public void foo(Object... values) { }. That will rock.
And it'll also be abused. People will write code that makes assumptions about the ordering and the content of such an object array, but they won't actually make it clear through the API.
PLEASE -- only use varargs when it's the only real option. If you can give your arguments meaningful and distinctive names, then please do so!
Posted by: mark lindsey at August 8, 2004 06:55 AM