Amazing brand spanking new programming concept: Parameter Paths!

TheHamster via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 21 08:29:36 PDT 2015


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 and/or much more convenient than using templates?

Probably not, just like a new born baby, it takes time to grow in 
to something useful.
Templates used to be a baby too.

(BTW, the first parameter for foo should be p1|p1|p1)

I suspect that parameter paths do not offer much more over 
templated functions except convince in a few cases.


More information about the Digitalmars-d mailing list