egnha / valaddin

Functional input validation to make R functions more readable and robust
Other
33 stars 1 forks source link

Implicitly globalize localized predicate #47

Closed egnha closed 7 years ago

egnha commented 7 years ago

If a localized predicate is not localized on any expressions, it should be implicitly regarded as a global predicate. For example, instead of having to write the verbose expression

firmly(f, globalize(vld_inherits("myClass")))

you should be able to just write

firmly(f, vld_inherits("myClass"))