Re: Avoiding Booleans & Danny Thorpe
- From: Andre Kaufmann <andre.kaufmann.bei@xxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 18:26:46 +0100
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 .
- Follow-Ups:
- Re: Avoiding Booleans & Danny Thorpe
- From: Ivan Rakyta
- Re: Avoiding Booleans & Danny Thorpe
- References:
- Avoiding Booleans & Danny Thorpe
- From: Kyle A. Miller
- Re: Avoiding Booleans & Danny Thorpe
- From: Jim Rowell
- Avoiding Booleans & Danny Thorpe
- Prev by Date: Re: Avoiding Booleans & Danny Thorpe
- Next by Date: Re: Avoiding Booleans & Danny Thorpe
- Previous by thread: Re: Avoiding Booleans & Danny Thorpe
- Next by thread: Re: Avoiding Booleans & Danny Thorpe
- Index(es):