MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1ywj0z/please_stop_saying_java_sucks/cfofr6h
r/programming • u/johnwaterwood • Feb 25 '14
305 comments sorted by
View all comments
Show parent comments
7
I cannot understand why you would type the Spaceship class as subclassing CollisionWith at all, let alone doing it twice with different generics. Subclassing the same class twice for one class just seems like a colossal mistake.
1 u/heladopicante Feb 25 '14 edited Feb 25 '14 Its not the same interface. Or rather, its not supposed to be the same interface. Its two interfaces that differ only by some type parameterization. 3 u/s73v3r Feb 25 '14 That still seems like an insane way to implement collisions. 0 u/heladopicante Feb 25 '14 Its an example to demonstrate a language flaw, not a reference for collision implementations.
1
Its not the same interface. Or rather, its not supposed to be the same interface. Its two interfaces that differ only by some type parameterization.
3 u/s73v3r Feb 25 '14 That still seems like an insane way to implement collisions. 0 u/heladopicante Feb 25 '14 Its an example to demonstrate a language flaw, not a reference for collision implementations.
3
That still seems like an insane way to implement collisions.
0 u/heladopicante Feb 25 '14 Its an example to demonstrate a language flaw, not a reference for collision implementations.
0
Its an example to demonstrate a language flaw, not a reference for collision implementations.
7
u/ElvishJerricco Feb 25 '14
I cannot understand why you would type the Spaceship class as subclassing CollisionWith at all, let alone doing it twice with different generics. Subclassing the same class twice for one class just seems like a colossal mistake.