On Friday, 21 August 2015 at 09:21:48 UTC, John Colvin wrote:
On Friday, 21 August 2015 at 00:29:35 UTC, TheHamster wrote:
Parameter paths, a thousand words summed up:
void foo(p1, p2|p3|p4, p5|p6, |*p7|p8){ ... }
[...]
Could you give an example of where this enables something
really new an
On Friday, 21 August 2015 at 00:29:35 UTC, TheHamster wrote:
Parameter paths, a thousand words summed up:
[...]
Essentially it could reduce overhead of writing common sets of
overloaded functions.
unfortunately, with std.traits a template can be shorter and it
will cover more type (all built
On Friday, 21 August 2015 at 00:29:35 UTC, TheHamster wrote:
Parameter paths, a thousand words summed up:
void foo(p1, p2|p3|p4, p5|p6, |*p7|p8){ ... }
[...]
Could you give an example of where this enables something really
new and/or much more convenient than using templates?
Parameter paths, a thousand words summed up:
void foo(p1, p2|p3|p4, p5|p6, |*p7|p8){ ... }
Parameter paths provide a very simple way to express multiple
parameter paths for a function.
It is similar but not the same as operator overloading.
Essentially, a symbol such as '|' is used to separa