tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: prop_dictionary_make_immutable



>>> +   if (prop_dictionary_is_immutable(pd) == false)
>> Surely, if we are goig to use 'bool' this should be just:
>>      if (!prop_dictionary_is_immutable(pd))
> Uh, what's the difference?

The same as the difference between return(0); and return 0;, or between

        if (something())
         { printf("strangeness %d\n",reason());
         }
and
        if (something ())
                printf ("strangeness %d\n", reason ());

That is to say, source-code aesthetics.  Presumably David thinks that
the if (! ...) style is preferable for use with a routine that
conceptually returns a boolean value (a position I agree with).

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML               mouse%rodents.montreal.qc.ca@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index