syntax sugar: std.path::buildPath instead of from!"std.path".buildPath
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 15 09:29:30 PST 2017
On Wednesday, 15 February 2017 at 17:18:15 UTC, Seb wrote:
> Now as this same block is used > 30x in Phobos
That tells me you already have an empirical clear win! If you
wrote exactly the same thing 30x inside the functions, you'd move
it out to a new function too.
> if (isSomeInputRangeChar!R)
>
> What's your opinion on such a case?
Yeah, I'd say do it, and it is similar to isSomeString in use
elsewhere.
More information about the Digitalmars-d
mailing list