Naming conventions for functions in similar modules

bearophile bearophileHUGS at lycos.com
Wed Jun 22 10:57:50 PDT 2011


Andrei:

> One improvement would be to relax package lookup such that 
> ascii.tolower() is a synonym for std.ascii.tolower. That way everything 
> works reasonably nice out of the box.

Every time you mud the semantics for a little convenience, later something will come to bite your rump. Shortcuts (and special cases) are acceptable only if the convenience they bring is quite large (and often with them you have to add something that mitigates their long term negative side effects).

Bye,
bearophile


More information about the Digitalmars-d mailing list