-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Generally it's a bad Idea to have aliases for methods (except rare cases of very targeted shortcuts).
But when developing your code, and you need to preserve the backward-compatibility - it could be handful!
Use cases (and preserve compatibility):
- You need to rename a method
- You create a new method, but it's compatible or partially compatible with the old one
- You change order of arguments in a method
In all the aforementioned cases you'll have to create a new method to preserve the compatibility, and the whole or part of the functionality would migrate to this new method.
But the old method must persist as Deprecated until a certain version of your code .
-- unfinished --
Metadata
Metadata
Assignees
Labels
No labels