coolbutuseless on Nostr: Do you have a preference on structuring a wrapper for a hidden/opaque context in ...
Do you have a preference on structuring a wrapper for a hidden/opaque context in #RStats?
# Choice 1: R6
world <- init_world()
world$add_circle()
world$add_joint(body1, body2)
# Choice 2: passing context around
world <- init_world()
add_circle(world, ...)
add_join(world, body1, body2)
# Choice 3: Something else? Please reply!
Happy to hear any reasoning for your choice/preference!
# Choice 1: R6
world <- init_world()
world$add_circle()
world$add_joint(body1, body2)
# Choice 2: passing context around
world <- init_world()
add_circle(world, ...)
add_join(world, body1, body2)
# Choice 3: Something else? Please reply!
Happy to hear any reasoning for your choice/preference!