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

Pipe operators #135

Open
StrajnarFilip opened this issue Jul 14, 2024 · 1 comment
Open

Pipe operators #135

StrajnarFilip opened this issue Jul 14, 2024 · 1 comment
Labels
Language idea One single idea which may be a start of a design document

Comments

@StrajnarFilip
Copy link

It's not really something Kotlin has, but regardless, forward pipe operator |> and backward pipe operator <| like in F# might be a great addition.

@LPeter1997
Copy link
Member

LPeter1997 commented Jul 25, 2024

I generally agree that the pipe operators are very useful, would be great to see them in the language. They might even be the excuse we need to get rid of extension methods. To avoid the ASCII soup of |>, ||> and |||>, we might want to introduce 2 flavors of the operators, one that splats the tuple and one that does not.

@LPeter1997 LPeter1997 added the Language idea One single idea which may be a start of a design document label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language idea One single idea which may be a start of a design document
Projects
None yet
Development

No branches or pull requests

2 participants