Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jhgg
on April 20, 2014
|
parent
|
context
|
favorite
| on:
Rust for C++ programmers – part 2: control flow
What's the purpose of:
y if y < 20
In the match block, can't we just use x?
masklinn
on April 20, 2014
|
next
[–]
Yes, you could write this as `_ if x < 20`. But not as `if x < 20`, I'm pretty sure the pattern is mandatory.
pcwalton
on April 20, 2014
|
prev
[–]
Yes, you could just use x.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: