"Concepts" should not be part of function headers

An Pham home at home.com
Thu Oct 23 13:51:40 UTC 2025


On Thursday, 23 October 2025 at 12:38:08 UTC, jmh530 wrote:
> On Thursday, 23 October 2025 at 02:06:44 UTC, H. S. Teoh wrote:
>> [snip]
>>
>> So the problem wasn't solved, just moved from the public API 
>> to the internal API.  Since it's no longer user-facing, those 
>> overloads really should be separately-named functions instead 
>> IMNSHO. Not 50 overloads on `toImpl`.
>>
>>
>> T
>
> What's the advantage of making them separately-named functions?

1. Easy to search for/jump to implementation
2. No need template constraint(s) -> faster compile

Happy coding


More information about the Digitalmars-d-learn mailing list