Skip to content

Warn that double-indexed assignment does nothing #33395

@BioTurboNick

Description

@BioTurboNick

Emit a warning or error if the user attempts to make a double-indexed assignemnt:

b = [1;4;5;6;7]
b[2:3][1] = 10
b[2:3][1] == 4 # true

Appears this was discussed in #119 as a feature, suggesting I'm not the only one who thinks to try it. As this is a no-op, would be useful to explicitly state it isn't supported, with a hint of how to achieve the intended behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions