TypeFunction example: ImplictConvTargets

claptrap clap at trap.com
Wed Oct 7 08:35:37 UTC 2020


On Wednesday, 7 October 2020 at 08:26:21 UTC, claptrap wrote:
> On Wednesday, 7 October 2020 at 03:12:46 UTC, Adam D. Ruppe 
> wrote:
>>
> Yeah Im not that that used to it, but the point is you have too 
> work at it to see whats going on, there's two nested functions 
> calls, more things passed around, more branches and recursion.
>
> I have no problem with recursion, there's algorithms that make 
> more sense as recursion, but this is not one, it's iterating 
> over a list, to make it recursive you end up with 2 or 3 times 
> more things going on in in order to make it work. Two 
> functions, more branches, more things passed backwards and 
> forwards, more construction of AliasSeq or whatever.
>
> Just compare how much is going on in the template version vs 
> the TF version.

Appologies, Ive just woke up and I replied here in response to 
Daniel Ks example code, not yours Adam. Hopefully it still kinda 
makes sense.


More information about the Digitalmars-d mailing list