From what I have read: because it is not easy to determine which method will actually be called as we have inheritance.
However, why doesn't Java at least have tail-recursion optimization for static methods and enforce proper way to call static methods with the compiler? I am not sure if there is any difficulty here at all.
Aucun commentaire:
Enregistrer un commentaire