single word requests - Verb to describe "to enable or to disable"


I'm looking for a word that describes "to enable or to disable". This related question found the hypernyms mode and state, but I am looking for a verb. I.e. a word for "(potentially) change mode/state".


I guess to switch is a good match, but unfortunately in JavaScript (my target language), switch is a reserved keyword.


What alternatives are there?



Answer



May I suggest "to set availability"? I think it fits well for function names: SetButtonAvailability(), SetOptionAvailability(), etc. It's long, but descriptive...


Comments

Popular posts from this blog

etymology - Origin of "s--t eating grin"

First floor vs ground floor, usage origin

usage - "there doesn't seem" vs. "there don't seem"

pronunciation - Where does the intrusive R come from in “warsh”?

Abbreviation of "Street"

etymology - Since when has "a hot minute" meant a long time?

meaning - What is synonyme of "scale"?