Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Filligree
on June 30, 2017
|
parent
|
context
|
favorite
| on:
Benefits of named return values in Go
The constraints are important. They're what let you code safely, and also give the compiler the ability to optimize better.
heythere124
on June 30, 2017
[–]
Not sure those optimisations are worth much. And it's only safety by forcing lowest common denominator code and making you justify everything to a dumb compiler. Rust serves a niche, but it is a tight niche IMO.
pcwalton
on June 30, 2017
|
parent
[–]
Aliasing info is hugely important in optimization. In fact, it's needed to solve
this very bug
.
Aliasing info is, fundamentally, what allows Rust to have memory safety without GC.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: