Nitpick: The "new" standard way of doing this in phobos (apparently) is
```D
version(assert) if (empty) throw new RangeError();
```
Yes, it's a bit (a lot) more verbose, but the resulting error (when triggered) feels much more "native".