Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
creata
on Oct 20, 2020
|
parent
|
context
|
favorite
| on:
Assorted Thoughts on Zig and Rust
Ah, sorry; I forgot that `as` let you cast bigger types to smaller types. Yeah, that does make the tragically verbose `.into()` the safer option, unless you know that the type you're casting into will always be bigger.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: