syntax sugar: std.path::buildPath instead of from!"std.path".buildPath
bachmeier via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 14 11:14:08 PST 2017
On Tuesday, 14 February 2017 at 19:08:53 UTC, bachmeier wrote:
> I am not familiar with all of the past discussion of this
> issue, but something that I have wondered is why we can't do
> something like
>
> alias fooConstraint = (s != SwapStrategy.stable
> && isBidirectionalRange!Range
> && hasLvalueElements!Range
> && hasLength!Range
> && Offset.length >= 1);
>
> Range remove
> (SwapStrategy s = SwapStrategy.stable, Range, Offset...)
> (Range range, Offset offset) if fooConstraint;
I mean, is there some reason that this shouldn't be allowed? Any
feature can be abused, but it looks useful in many cases.
More information about the Digitalmars-d
mailing list