D UFCS anti-pattern

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 24 22:27:08 PDT 2014


On Friday, 25 April 2014 at 02:21:32 UTC, Steven Schveighoffer 
wrote:
> A relevant bug report (where I actually advocate for adding 
> more of this horrible behavior): 
> https://issues.dlang.org/show_bug.cgi?id=12583
>
> -Steve

See also: https://issues.dlang.org/show_bug.cgi?id=9074
Appender!string x;
x.put(repeat(" ").take(4)); //fails
put(x, repeat(" ").take(4)); //works


More information about the Digitalmars-d mailing list