Why would I use a chain of responsibility over a switch-statement
Consider you got several validations. Those validations should only take effect if the object to be inspected is of a certain type. Why would I use a chain of responsibility over a switch-statement?
Aucun commentaire:
Enregistrer un commentaire