TypeFunction example: ImplictConvTargets

claptrap clap at trap.com
Tue Oct 6 20:57:10 UTC 2020


On Tuesday, 6 October 2020 at 12:28:55 UTC, Adam D. Ruppe wrote:
> On Tuesday, 6 October 2020 at 08:35:20 UTC, claptrap wrote:
>> Because Stefan didnt rely on external code, he showed *all* 
>> the code needed, so a counter example should have been the 
>> same. Since the point is to compare the two *language* 
>> features, not compare library calls.
>
> Language features are a means to an end.
>
> If the Phobos version compiles faster, uses less memory, and 
> has the same result in the binary, it is a victory, even if it 
> as significantly more code.
>
> I'm skeptical of the type functions, but interested. They might 
> help with a real problem. But they need to actually win on the 
> end results, not against artificial strawmen.

Im less interested in performance than I am in being able to 
express what I want to do in clear concise code. I find 
template/mixin shenanigans a bit like writing that doesnt have 
any vowels, ys y cn stll ndrstnd t, but it takes a lot more work 
and feels fundamentally unsatisfactory.




More information about the Digitalmars-d mailing list