Traits mega template

monkyyy crazymonkyyy at gmail.com
Sun Aug 10 22:33:18 UTC 2025


On Sunday, 10 August 2025 at 21:25:29 UTC, Per Nordlöw wrote:
>>  header `if` resolve to an expression and there are questions 
>> that are iterative such as all the listing the members of a 
>> struct and finding some function inside matches
>
> I don't understand what you mean by this. Please explain 
> further.

`void foo(...)() if(isSomething!T)`

If isSomething isnt exactly a __trait, such as 
`isBidirectionalRangeWithLengthAlsoCopyAndAlsoIsV3` it may not be 
practual to have users always get it exactly right is it will be 
an abstraction of some sort.

The compiler devs dont necessarily pick my suggestions for api 
instantly either


More information about the Digitalmars-d mailing list