Skip to content

Improve error message for :=(a := b, c := d) #5296

@MichaelChirico

Description

@MichaelChirico

Not uncommon for instinct to take over and write a nested := query:

DT[, `:=`(a := a + 1, b := b + 1)]
# Error:
#     In `:=`(col1=val1, col2=val2, ...) form, all arguments must be named.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions