Hacker News new | past | comments | ask | show | jobs | submit login

What's the purpose of:

    y if y < 20
In the match block, can't we just use x?



Yes, you could write this as `_ if x < 20`. But not as `if x < 20`, I'm pretty sure the pattern is mandatory.


Yes, you could just use x.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: