failable

Execute pred, if it does not have any compiler errors.

alias failable(alias pred, alias response) = if_!(partialPrefixed!(compiles, pred), pred, response)

Parameters

pred

template that will be executed if it does not contain errors.

response

a response if pred will fail.

Return: Result of pred if it does not contain errors or response otherwise

Meta