Skip to content

Consider using - as the discard token #2

@hotsphink

Description

@hotsphink

It's the same as underscore, just lifted up a little bit!

I understand that let -= 1 has an existing meaning in sloppy mode, but personally I'm not sold on toplevel discards anyway. (If you really want it, then at least let - = 1 is a syntax error, so at the token level it's the same as saying + and ++ are different tokens so y = x++3 is already forbidden even though it could have meant y = x + +3.)

This doesn't address using-=new Resource. I don't know enough about that proposal to know why that couldn't be using new Resource if you don't want to name it. If you don't want a binding, why have an equals sign?

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