Re: Amazing brand spanking new programming concept: Parameter Paths!

2015-08-21 Thread TheHamster via Digitalmars-d
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

Re: Amazing brand spanking new programming concept: Parameter Paths!

2015-08-21 Thread BBasile via Digitalmars-d
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

Re: Amazing brand spanking new programming concept: Parameter Paths!

2015-08-21 Thread John Colvin via Digitalmars-d
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?

Amazing brand spanking new programming concept: Parameter Paths!

2015-08-20 Thread TheHamster via Digitalmars-d
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