toUTFz and WinAPI GetTextExtentPoint32W

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Sep 20 15:10:23 PDT 2011


On 9/20/11, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> We specifically avoid having aliases in Phobos simply for having alternate
> function names. Aliases need to actually be useful, or they shouldn't be
> there.

And function names have to be useful to library users. walkLength is
an awful name for something that returns the character count.

If you ask a GUI developer to look for a function that creates a
rectangle path, you can be sure he'll start looking for Rectangle or
DrawRect or something similar, and not "ClosedShapePointN!4" or
something that generic.


More information about the Digitalmars-d-learn mailing list