Showing results for August 28, 2006 - The Old New Thing

Aug 28, 2006
Post comments count0
Post likes count2

Try to avoid having BOOL function parameters

Raymond Chen
Raymond Chen

Generally speaking, I believe that you should try to avoid giving functions a boolean parameter (, , etc.) unless the meaning of that boolean parameter is blatantly obvious. Examples of obvious meaning would be the second parameter to the function ( obviously means the window is being enabled and means that it's being disabled) and the final para...

Code