def _eafp(ask, default):
    """
    Easier to ask for forgiveness than permission
    `x = _eafp(lambda: int('a'), 0)` is equivalent to `x = int('a') ?? 0`
    """
    try:
        return ask()
    except:
        return default
