moodymudskipper / debugverse

Brainstorming ideas for debugging workflow and tools, not a package (yet ?)
1 stars 0 forks source link

Forwarding args #3

Open moodymudskipper opened 2 years ago

moodymudskipper commented 2 years ago
inside_fun <- function(y, foo = "default) {...}
outside_fun <-  function(x, foo = "default) {
  ...
  inside_fun(y) # forgot to forward `foo` !
  ...
}

Static analysis can help us, if inside function has formal named as the outside function's formals it can bring our attention to it.