Note to self: be aware of functions with default arguments
I recently got badly bitten by functions with default arguments.
When writing code myself, I usually don't introduce default arguments. Until now, the only acceptable case to do this was for existing functions, which needed additional features, but the functions were used in multiple places, and making the change without default arguments would mean many modifications.
Now, I changed my mind. Note to self: forget default arguments, they don't exist. Really, forget them...
- Read more about Note to self: be aware of functions with default arguments
- Log in or register to post comments