Skip to content

Extend Expression can leak underscore and other issues with underscore #532

Open
@sorawee

Description

@sorawee
> {_: 1}
Well-formedness: Cannot use underscore as a field name at...
> {a: 1}.{_: 1}
{_: 1, a: 1}
> {a: 1}.{_: 1}._
1 # oh wow

Is this the way you intend it to be?

> (_.a(123))({a: _ + 456})
579

This shouldn't be right (please note the whitespace after dot)

> (_.    a     )({a: 1})
1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions