Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function chaining doesn't work #2807

Open
Denis535 opened this issue Jul 2, 2023 · 0 comments
Open

Function chaining doesn't work #2807

Denis535 opened this issue Jul 2, 2023 · 0 comments

Comments

@Denis535
Copy link

Denis535 commented Jul 2, 2023

It would be very concise if we could use a chain of function calls, but unfortunately this does not work ((
Is there a way to achieve this syntax?

fn()
    p("This is fn function")
    return @() {
        p("This is anonymous function 1")
        return @() {
            p("This is anonymous function 2")
        }
    }

fn(...)(...)(...)

Now the only way:

tmp = fn()
tmp = tmp()
tmp()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant