alias not_null = (bool)p;
alias not_space = (*p != ' ');
if (not_null && not_space) {
This may bite you in another way, but living in a world where everything gets evaluated asap-y isn’t syntactically easy either.Would be also nice to have this:
alias __cache foo = <heavy(expr())>;
if (foo && foo.length && foo[0].x) {
`foo` only evaluates once.