Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
int_19h
4 months ago
|
parent
|
context
|
favorite
| on:
A comparison of Rust’s borrow checker to the one i...
You should be able to remove `restrict` in any valid C program and still compile it and run it with the same result, no?
Adding
`restrict` can make otherwise valid code UB if there's aliasing, but the reverse shouldn't ever appply.
umanwizard
4 months ago
[–]
I think OP meant you could remove the “restrict” keyword from the
language
and most programs would still compile fine.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: