Skip to content

Postfix Block Expression #3

@liamoc

Description

@liamoc

So, I'd really like something along the lines of ruby, that let you pass an additional argument to a function as a block specified after the function call, i.e:

myFunc(1,2) x =>
   alert(x).

This would be semantically equivalent to either:

myFunc(1,2,x=>alert(x).)

or:
myFunc(1,2)(x=>alert(x).)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions