R6 icon indicating copy to clipboard operation
R6 copied to clipboard

Use sentinel function for active bindings

Open hadley opened this issue 6 years ago • 1 comments

public = list(
  blah = active_binding(function(value) {
    
  })
)

And eventually deprecate the active_bindings argument

hadley avatar Aug 30 '17 18:08 hadley

Maybe active_binding could have a read_only flag?

public = list(
  blah = active_binding(function() {
    
  }, read_only=TRUE)
)

And then there could be nice error-handling by default (similar to the goal of #100 and #99).

x$blah <- 0
# Error: blah is read-only

idavydov avatar Jul 07 '20 13:07 idavydov