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

CFG format for function pipe #79

Open
akashsridhar opened this issue Dec 16, 2019 · 1 comment
Open

CFG format for function pipe #79

akashsridhar opened this issue Dec 16, 2019 · 1 comment
Assignees

Comments

@akashsridhar
Copy link
Contributor

(1,2) |> foo => foo(1,2) - use fcall's cfg format for function pipe

(1,2) |> F1(2,3) => F1(2,3,1,2)
(or)
=> __tmp = (1,2) ++ (2,3)
F1(__tmp) - use this cfg format

@akashsridhar akashsridhar self-assigned this Dec 16, 2019
@renau
Copy link
Member

renau commented Dec 17, 2019

It should be:
__tmp = (1,2) ++ (2,3)
F1 __tmp // no parenthesis

It is legal to write this in pyrope
a = (1,2)
a |> fun
// same as calling fun(1,2) not fun((1,2))

@renau renau closed this as completed Dec 17, 2019
@renau renau reopened this Dec 17, 2019
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

2 participants