Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kibwen
on Oct 9, 2024
|
parent
|
context
|
favorite
| on:
John Carmack on inlined code (2014)
You're looking for blocks-as-expressions, e.g. the following is valid Rust:
let x = { whatever; 5 }; // assigns 5 to x
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: