Aug 29, 2022
Just because we can do this, doesn't mean that we should. It works and all but it should be avoided.
This way we're not able to run any static code analysis tools, we have to add additional conditions to check if the method exists or not, the code loses readability, it's hard to test and the list goes on.
Personally I'd suggest to avoid this as much as possible.