0

I'd like to say: 'My goal is to undefine the existing variable.'

I'm using 'to undefine' as opposed to 'to define' phrase. However the dictionary on macOS cannot find the 'undefine' word.

Is this a valid phrase?

  • Do you mean set the variable's value to null or its equivalent? – mkennedy Jan 24 '17 at 0:44
  • To do for example: #undef FOO (to undefine the property in this case). – kenorb Jan 24 '17 at 1:02
2

Yes. The verb undefine is widespread in computing, especially in programming, where the act of defining something (such as a function, variable, alias or data type) is easy to undo. Many programming languages and command languages have an undefine command (usually as the abbreviated form undef).

| improve this answer | |
  • 2
    In some cases, you'll see unset used similarly. – TecBrat Jan 23 '17 at 13:59
  • 2
    @TecBrat and also undeclare. – J. Siebeneichler Jan 23 '17 at 14:02

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.