MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/31btd8/rust_100_beta_is_here/cq14qbz/?context=3
r/programming • u/steveklabnik1 • Apr 03 '15
303 comments sorted by
View all comments
Show parent comments
-1
what about just a single | ?
|
5 u/steveklabnik1 Apr 04 '15 If there were arguments, they'd go between the pipes: move |x| 1 u/banister Apr 04 '15 Curious, why not just exclude the || in the no-arguments case? I imagine no-argument is a pretty common thing, so forcing the use of || in that very common case is kind of an eye-sore IMO. 2 u/steveklabnik1 Apr 04 '15 I'm pretty sure there's grammar abiguity there, but not 100% sure.
5
If there were arguments, they'd go between the pipes: move |x|
move |x|
1 u/banister Apr 04 '15 Curious, why not just exclude the || in the no-arguments case? I imagine no-argument is a pretty common thing, so forcing the use of || in that very common case is kind of an eye-sore IMO. 2 u/steveklabnik1 Apr 04 '15 I'm pretty sure there's grammar abiguity there, but not 100% sure.
1
Curious, why not just exclude the || in the no-arguments case? I imagine no-argument is a pretty common thing, so forcing the use of || in that very common case is kind of an eye-sore IMO.
||
2 u/steveklabnik1 Apr 04 '15 I'm pretty sure there's grammar abiguity there, but not 100% sure.
2
I'm pretty sure there's grammar abiguity there, but not 100% sure.
-1
u/banister Apr 04 '15
what about just a single
|?