Why both isSafe and isUnsafe?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Sep 28 03:00:20 UTC 2020


https://dlang.org/phobos/std_traits.html#isSafe
https://dlang.org/phobos/std_traits.html#isUnsafe

Implementation:

template isUnsafe(alias func)
{
     enum isUnsafe = !isSafe!func;
}

Why do we need both?


More information about the Digitalmars-d mailing list