i.e transform1 returns (result, error) and transform2 accepts (result, error) and short-circuits if err is not nil.
It allows the expressive and succinct description of a transformation list but with a bunch of messiness hidden.
fn(fn(fn()?)?)? is a bit gnarly but better than duplicate code like that, imo.
i.e transform1 returns (result, error) and transform2 accepts (result, error) and short-circuits if err is not nil.
It allows the expressive and succinct description of a transformation list but with a bunch of messiness hidden.