Document Reasons Behind Default Parameter Values [DI19] [WHY]

Document Reasons Behind Default Parameter Values [DI19] [WHY]

Tip DI19

Many languages allow functions to have default values for some parameters. In such cases, document the meaning and reason behind the default values. This helps others know if a default value exists for just a “convenience” reason or if there are more important considerations.

See the following:

Code in the zone ad.png