Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
brutt
on May 15, 2020
|
parent
|
context
|
favorite
| on:
Five Years of Rust
It's good thing, but it leads to error in code which must talk to C or network, where enum's are not cast in stone.
NewJazz
on May 15, 2020
|
next
[–]
You really should not be casting data structures sent over the network directly to local data structures, unless you are using capnproto or another zero copy protocol that does that safely.
mlindner
on May 16, 2020
|
prev
[–]
You can assign any value to a C enum, they literally are just integers.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: