Usefulness of Toggle functions
- by roygbiv
Is it better to write functions that explicitly do something (i.e. HideForm/ShowForm etc...)
or is it better to write 'Toggle' type functions (i.e. ToggleVisibility)?
I find Toggle type functions awkard because it's hard to track the state by reading the code.
In what situations is a toggle type function useful?