Say all of those properties store zip codes. Or they must be positive integers. Or they must contain an absolute path to an existing file. The classes are completely unrelated.
You'd write the validation code over and over for those? Doesn't it make more sense to be able to declare "this property stores a zip code" and be done with it? Isn't it desirable that an improvement to the zip code validation class would trickle through to all four instances?
Makeshifts last the longest.
In reply to Re^18: Assignable Subroutines
by Aristotle
in thread Assignable Subroutines
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |