egnha / valaddin

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

Turn on %checkin%, %checkout% #34

Closed egnha closed 7 years ago

egnha commented 7 years ago
  1. Create an operator %checkout% to return output-validated functions.
  2. Rename %secure% to %checkin%.

It would then be possible to write

chk_input %checkin% f %checkout% chk_output

to elevate f to an end-to-end validated function.

egnha commented 7 years ago

Won't do: output-validation lies outside the scope of valaddin.

(Why? Because if a function generates invalid output for valid input—which is what valaddin addresses—the function is broken. In such cases, output validation is not the proper solution.)