if (Addable, Addable) -> Addable is an interface then (int, int) -> int should be allowed if i implement add
By default, function like read.csv() and data.frame() automaticaly convert character vectors to factors. Automatically add stringAsFactors = FALSE in the parameters.
An inside variable can rewritte a global variable
Use on.exit([parameter], add = TRUE) to clean up the environment
Simple OO System Offer freedom and extensibility TypR automatically add and manage constrains in a less restrictive manner Can't explicitelly change a object's class
-
Find a way to implement those elements:
- Constructor DONE
- Validator
- Helper
-
Safe convention for inheritance and subtyping: structural typing