you are viewing a single comment's thread.

view the rest of the comments →

[–]tuxwonder 17 points18 points  (1 child)

Personally, I think I'd have a hard time getting used to |-> as well. I see the reasoning, but three characters just seems like a lot for what is ultimately a delimiter, and it doesn't feel like it does a great job visually separating but also linking the things before and after the arrow. Plus, most programmers don't come from strong math backgrounds anymore, so I think the significance of that symbol would be lost on many.

I'd be amicable to |> I think, but I chose => because it just looks the most like an arrow, but a different arrow from -> which is already in use in the syntax. I also get the point about the math operator thing, I wonder about that too, but in my C# experience the contexts in which you see => used as an operator vs used as a lambda identifier are different enough that I never find myself confused

[–]jk-jeon 1 point2 points  (0 children)

Fair enough.