if(;){} opinion
Jari-Matti Mäkelä
jmjmak at utu.fi.invalid
Tue Feb 28 10:33:03 PST 2006
clayasaurus wrote:
> Is it more concise to the maintainer if they are unfamiliar with the
> given type?
>
> (in case of 'if (m; mystery())' maintainer will have to discover what
> mystery() returns instead of knowing it returns given 'type' right off
> the bat.
>
> Might this negate any time saved in typing?
>
That's very true. This kind of code isn't very self documenting. You
have to search through the API (can take a lot of time) or just remember
it somehow. In a huge class hierarchy this will be a major setback, what
do you think?
More information about the Digitalmars-d
mailing list