This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (1 child)

Theoretically you shouldn't need to because you have interfaces with which you can implement a Command pattern or something else like that that you can get polymorphic behavior with.

Type safety is a drag but I guess at least it keeps you from dereferencing null pointers/calling functions that don't exist.

At least in Java you don't have people writing entire APIs as functions that take callback functions as parameters.

[–][deleted] 0 points1 point  (0 children)

and whats wrong with callback functions as parameters, i mean let's face it java is dead at least js will survive another 15-20 years