in reply to Re: Re: Confused.... question on code scalability (reusing functions, etc)
in thread Confused.... question on code scalability (reusing functions, etc)
About "standardizing on which negator you are going to use. Not or !."...
...that depends on the intent of expression evaluation. Word operators (not, and, or) bind rather loosely than otherwise (!, &&, ||). Just consider the output of the following...
perl -e 'print join(" ", (!0 && 0) , (!0 and 0) , (not 0 && 0) , (not +0 and 0))'
It is ill advised to ask a beginner to standardise on a negator, as you put it, without mentioning the operator precedence level.
|
|---|