Please change alias ReplaceArrayWithPointer = Flag!"replaceArrayWithPointer"

Marc Schütz via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 22 06:48:47 PST 2016


On Thursday, 21 January 2016 at 20:42:17 UTC, Jack Stouffer wrote:
> On Thursday, 21 January 2016 at 19:31:19 UTC, Andrei 
> Alexandrescu wrote:
>> * Do NOT alias Flag!"frob" to a new name. This is unnecessary, 
>> unhelpful, and wasteful.
>
> I disagree. Making an alias means the user does not have to 
> import std.typecons in their code, and as a purely subjective 
> measure, ReplaceArrayWithPointer.Yes looks better than 
> Flag!"replaceArrayWithPointer".Yes.

Me too. @Andrei, what exactly is wrong with the alias?


More information about the Digitalmars-d mailing list