Replies: 2 comments 4 replies
-
@GaN8373 In what language did you use it? because it seems like some people in the links people still don't get the point of the operator but weirdly enough they prefer to write their code in this way... |
Beta Was this translation helpful? Give feedback.
4 replies
-
I don't know if the pipeline operator befits C#, but I would appreciate a lambda shorthand like what F# has: // Long form
IEnumerable<Person> persons = ...;
Person oldest = persons.MaxBy(x => x.Age)
// Short form
IEnumerable<Person> persons = ...;
Person oldest = persons.MaxBy(_.Age) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I checked #74 and #96 , but couldn't find any intention to implement it. I would like to know if it will be implemented in CS in the future.
I prefer this style:
Beta Was this translation helpful? Give feedback.
All reactions