Reducing the cost of autodecoding
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 12 17:11:48 PDT 2016
On Wednesday, 12 October 2016 at 23:59:15 UTC, Stefan Koch wrote:
> On Wednesday, 12 October 2016 at 23:47:45 UTC, Andrei
> Alexandrescu wrote:
>>
>> I think we should define two aliases "likely" and "unlikely"
>> with default implementations:
>>
>> bool likely(bool b) { return b; }
>> bool unlikely(bool b) { return b; }
>>
>> They'd go in druntime. Then implementers can hook them into
>> their intrinsics.
>>
>> Works?
>>
>>
>> Andrei
>
> I was about to suggest the same.
> I can prepare a PR.
We should probably introduce a new module for stuff like this.
object.d is already filled with too much unrelated things.
More information about the Digitalmars-d
mailing list