[M3devel] [M3commit] CVS Update: cm3

Rodney M. Bates rodney.bates at wichita.edu
Thu Jan 10 22:39:57 CET 2008


My practice is to let the actual expression do the explaining to the
reader, if it can do that, otherwise, give the formal name in a
keyword binding.  For example, if the actual is a (boolean-typed)
variable named "IsEmpty", that alone probably suggests what the meaning
of the parameter is.  OTOH, if the actual is "TRUE", then I would code
"IsEmpty := TRUE".

> Quoting Jay <jayk123 at hotmail.com>:
> 
>> Style tangent: Have people heard the advise that boolean parameters   
>> are bad, because at the callsite esp. they don't give much meaning?   
>> What is TRUE? What is FALSE? Enums or named parameters are clearer.
> 
>
-- 
-------------------------------------------------------------
Rodney M. Bates, retired assistant professor
Dept. of Computer Science, Wichita State University
Wichita, KS 67260-0083
316-978-3922
rodney.bates at wichita.edu



More information about the M3devel mailing list