On Sunday, 22 March 2020 at 19:04:40 UTC, Mike Parker wrote: > > ``` > T returnValIfFail(T)(bool expr, T val) { > if(expr) return val; > else assert(0); > } > ``` Heh, of course, as Dennis pointed out, that's essentialy assert(expr). ``` assert(expr); x = val; ```