Skip to content

Lower standalone dotted infix operators as anonymous functions #34156

@mbauman

Description

@mbauman

I could've sworn we already had an issue tracking this, but I couldn't find it. In short, I'd love to have support for standalone (.+) and friends to lower to (args...)->(+).(args...). This would enable their use in higher order functions and generally make them more useful.

They currently parse as identifiers — and can be assigned to! — so this would be a breaking minor change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    broadcastApplying a function over a collectioncompiler:loweringSyntax lowering (compiler front end, 2nd stage)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions