Usefulness of Toggle functions
Posted
by roygbiv
on Stack Overflow
See other posts from Stack Overflow
or by roygbiv
Published on 2010-04-13T18:45:35Z
Indexed on
2010/04/13
19:13 UTC
Read the original article
Hit count: 421
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?
© Stack Overflow or respective owner