Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
iand
on Nov 10, 2016
|
parent
|
context
|
favorite
| on:
Announcing Rust 1.13
Er...
https://play.golang.org/p/QyQVFfPIhx
stouset
on Nov 11, 2016
[–]
Is this a recent change? I've with 100% been bitten by this before, repeatedly, and the go compiler did nothing to warn about it.
masklinn
on Nov 11, 2016
|
parent
[–]
Maybe for a side-effecting function which would only return an error?
edit: nope, fails with "err evaluated but not used".
stouset
on Nov 11, 2016
|
root
|
parent
[–]
I'm genuinely stumped. If they've fixed this, that's fantastic because I have absolutely shipped code with this bug to a production environment.
iand
on Nov 11, 2016
|
root
|
parent
[–]
I've been working with Go for 4 years and I've not encountered it. Perhaps there was an edge case where it was allowed, but I don't recall it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: