iqis / Q7

Freestyle Object Oriented Programming in R
GNU General Public License v3.0
5 stars 1 forks source link

Lock bindings with `immutable()` #14

Open iqis opened 3 years ago

iqis commented 3 years ago

Locks all bindings, but not the envir itself, so new bindings can be added.

myThing <- myThing %>% immutable()

option to lock only functions?

iqis commented 3 years ago

alternative: sealed(). Is this from Scala?