-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Labels
interface 🎁External interface of functionsExternal interface of functions
Description
For vectorised arguments I think we should consistently treat NULL in the same way as if the argument had not been supplied. This is symmetric with our use of NULL for the default value of optional arguments that need complex calculations.
library(vctrs)
vec_c(TRUE, double())
#> [1] 1
vec_c(TRUE, NULL)
#> [1] TRUE
# Same as
vec_c(TRUE, )
#> [1] TRUE
# Same as
vec_c(TRUE)
#> [1] TRUEReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
interface 🎁External interface of functionsExternal interface of functions