English is not my primary language so I have hard time with this problem. I am currently writing comments to computer code. There is setting that enable/disable some functionality. What would be correct comment to this? Is there noun form of word enable? The comment would be something like:

Sets ??? of functionality.

I am thinking about:

Sets working state of functionality.

Sets turning on/off of functionality.

Sets availability of functionality.

But it just seems wrong. Is there some better words that could describe this?

  • Tangentially: Be wary of terse comments in code -- you'll need the meaning later. For example, "If true, then _____. If false, then _____." Oftentimes in code, true/false settings are not exactly opposite in the outcome. Nov 20 '14 at 13:59
  • Sets / resets functionality.
    – Kris
    Nov 20 '14 at 15:33

You could write

enables or disables the functionality


activates or deactivates the functionality

or, less comprehensibly

toggles the operation of the functionality

  • Thank you. 'enables or disables the functionality' suits me, cannot believe I didn't think of that. Well I should think harder next time :)
    – benderto
    Nov 20 '14 at 13:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.