Skip to content

recommendations for passing extra arguments through ... in lapply() and al. #255

@ThomasSoeiro

Description

@ThomasSoeiro

Should the style guide provide recommendations for passing extra arguments through ... in lapply() and al.? In particular, should the extra arguments be named when passed to a function with no default arguments?

E.g. with function signature f(x, y):

# bad?
lapply(1:3, f, 4)

# good?
lapply(1:3, f, y = 4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions