I've recently found out that you can deal with the abundance of backticks and escapes in a couple of ways:
  q{ your code here... }
will resolve to a string but your editor can still highlight it as D code, making it more readable.
also, turning things like:
  mixin ("if ("~expr~")")
into:
  if (mixin(expr))
can improve readability but beware I've noticed that sometimes this is not equivalent to the previous version and I'm not sure how or why that happens.
In particular I notice that

  mixin("const bool value = "~expr~";)");
and
  const bool value = mixin(expr);

are not the same, for some reason.

Reply via email to