Re: Avoiding Booleans & Danny Thorpe



Jim Rowell wrote:
"Andre Kaufmann" <andre.kaufmann.bei@xxxxxxxxxxx> wrote in message
news:4364b4c0@xxxxxxxxxxxxxxxxxxxxxxxxx

[...] With the latter one I don't have any clue what's the paramter for.


You do if you are reading it inside of the ide which is generally the case.

Yes. But I must hover the mouse cursor over the variable.

Nonetheless, I was thinking more along the lines of their use in properties
rather than parameters.

Ok, I agree. For properties the name itself is sufficient. Either the parameter type or the variable name should be self explaining.
Something like:


	item1.createNew := cmCreateNew

would be overkill and counterproductive.

I'd say that for parameters they *do* make sense
instead of booleans and I do prefer them. OTOH, just like the use of type
prefixes, the ide itself can tell you what you want to know.


I like the additional information I get in the IDE, but it does currently show the variable type only if I hover the mouse cursor
over the variable.


Andre
.