poll for properties

Dimitar Kolev DimitarRosenovKolev at hotmail.com
Wed Jul 29 04:35:07 PDT 2009


Kagamin Wrote:

> bearophile Wrote:
> 
> > Dimitar Kolev:
> > > None. I would call it isEmpty or isEmpty().
> > 
> > This may interest Andrei: lot of people here (me too) seem to think that the name "isEmpty" is better than "empty" for that purpose.
> > 
> The very properties discussion comes from D living in the context of C family languages and their good practices. Python somehow managed to rebel from those...

The properties discussion arises from the people who can not think of good names for variables and functions.

So they get confused by things like empty. It should be isEmpty the state and empty the function then there will be no confusion which does what and people can finally realize that () are optional.

This is just an example but good names are the reason for all this weirdness. Or bad names.



More information about the Digitalmars-d mailing list