D UFCS anti-pattern

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 25 08:21:55 PDT 2014


On Friday, 25 April 2014 at 12:21:04 UTC, Steven Schveighoffer 
wrote:
> I think this really comes down to a poorly named function. 
> textOf, toText, textify even, are better names that wouldn't 
> cause this problem.
>
> -Steve

Well, in this case, yes, because it's a noun. For all functions 
that are verbs the issue still stands.


More information about the Digitalmars-d mailing list