Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
catlifeonmars
14 days ago
|
parent
|
context
|
favorite
| on:
Be careful with Go struct embedding
Eh it’s about the same level of footgun you might see in C99. It’s not great but you’re being hyperbolic if you ask me.
ShroudedNight
14 days ago
[–]
I agree that most scenarios are not going to be so perilous. However, GOTO FAIL[1] would fit your C99 foot gun description neatly, with repercussions that would approach the peril of my metaphor within at least an order of magnitude.
https://en.wikipedia.org/wiki/Unreachable_code#goto_fail_bug
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: