Commenting Switch/Match/Case Statements [DS17] [WHAT]

Commenting Switch/Match/Case Statements [DS17] [WHAT]

Tip DS17

You can typically comment switch/match statements similarly to if, else if/elif, else blocks, and then comment the body of cases just like entering any other block scope. That means, if possible, prefer summarizing the entire result of the switch/match statement.

See the following example:

Code in the zone ad.png