Posted: Sat Oct 08, 2005 12:22 am Post subject: (No subject)
rizzix wrote:
its counter-java way of getting things done. In java everything is part of an instance of a class or part of the class it self.. (with the only exception being primitives).. that's the philosophy!
Static imports don't change that.
They just provide syntactic sugar to make using static fields and methods easier.
What about methods?
For instance, importing the sort method from Arrays and Collections.
Sponsor Sponsor
rizzix
Posted: Sat Oct 08, 2005 7:55 am Post subject: (No subject)
yea but it's the syntataic sugar that drifts you away from the java-way-of-coding.. I'm not say to _never_ use it.. i can be very useful specially when porting like C-code to java.. as in OpenGL and stuff.
Aziz
Posted: Sat Oct 08, 2005 11:10 am Post subject: (No subject)
It's like a duel... I have no more to say on this matter, but it would get confusing if you imported more than one 'white' member, wouldn't it?
wtd
Posted: Sat Oct 08, 2005 12:13 pm Post subject: (No subject)
Aziz wrote:
It's like a duel... I have no more to say on this matter, but it would get confusing if you imported more than one 'white' member, wouldn't it?
The compiler would stop you.
[Gandalf]
Posted: Sat Oct 08, 2005 4:19 pm Post subject: (No subject)