If you have a class MyClass(T), then nameof!(MyClass) will return "MyClass".
One benefit of this is that you can do things like:
mixin("auto obj = new "~nameof!(MyClass)~"!(int)()");
or
throw new Exception("Something's wrong with a "~nameof!(MyClass)~" object!";
and the "MyClass" will be checked by the compiler, alerting you immediately
if the class name changes, helping you keep such strings up-to-date.
If you have a class MyClass(T), then nameof!(MyClass) will return "MyClass".
One benefit of this is that you can do things like: mixin("auto obj = new "~nameof!(MyClass)~"!(int)()"); or throw new Exception("Something's wrong with a "~nameof!(MyClass)~" object!"; and the "MyClass" will be checked by the compiler, alerting you immediately if the class name changes, helping you keep such strings up-to-date.