And that blank area between the CLAIM and GOAL is the perfect location for:
(Yes, the exit above moots the assert in this case, but not all functions check all arguments.)# CLAIM: all input values are valid assert($name ne ""); # GOAL: process input values
...roboticus
In reply to Re^2: Coding styles using if/else
by roboticus
in thread Coding styles using if/else
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |