Should API use kwargs or a `values` list argument?
Closed this issue · 0 comments
keller-mark commented
The kwargs are nice but mean that users cannot choose value names that clash with existing (or future) named args like esm
, width
, height
, and mode
.
widget <- AnyHtmlWidget$new(esm = esm, mode = "static", count = 1)
# vs
widget <- AnyHtmlWidget$new(esm = esm, mode = "static", values = list(count = 1))