Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tyre
on July 17, 2019
|
parent
|
context
|
favorite
| on:
Declined Proposal: A built-in Go error check funct...
yes! Or using function heads, though for cases with many errors this can end up being less clear.
Rust's `match` also does an ok job
jeremyjh
on July 17, 2019
[–]
Match isn't really comparable to Elixir's with. The Elvis operator is closer, you can have a chain of commands with early exit.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Rust's `match` also does an ok job