Regarding unused "optional" parameters in procedures - do you leave them commented out?
Hello fellow SCNers,
Again another question on better coding practice I have not been able to make up my mind yet on this one.
Suppose i am using a procedure (FM/Method) and there are some optional IMPORTING params (or mandatory IMPORTING params with default value) which i am not using. The SAP pattern builder comments out those params for you, but i always have this strong urge to delete them because i hate dead code
Last Friday i was analysing a problem in our system and i found the cause of the problem quickly. Thanks to the developer for leaving the unused param as commented. Had he deleted the param it would have taken additional debugging effort (you would hate that on a Friday, wouldn't you?).
Now, my question is - Do you leave the unused params are commented?
TIA for making my Monday better.
PS - For EXPORTING params i think i'll delete the unused ones and