On Tuesday, 9 April 2019 at 14:42:38 UTC, Alex wrote:
It basically proves my point that there are issues with D.
The language is fine in this case, it is a bug in the library.
Though, I don't think the library can be fixed because the
language doesn't have facilities to express these things through
libraries.... but I also don't see the point in having a library
at all. You incur compile time and run time costs for stuff you
probably don't need and introduce another layer of bugs.
Some of the lower level features are a little weird to see*, but
they are easy to use once you get to know them.
* for example
static if(is(typeof(overload) Params == __parameters))
to get the function parameter list (as the Params variable
there). It is a little weird looking, but it isn't really hard to
use.