Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
neonsunset
on Dec 1, 2024
|
parent
|
context
|
favorite
| on:
Cursed Linear Types in Rust
Reading the JEP, isn’t StableValue about JIT constants?
In .NET it’s just 'static readonly'.
cempaka
on Dec 1, 2024
[–]
The basic feature set is at-most-once thread-safe initialization of values, which can then enjoy the same constant folding and other JIT optimizations one would get from `static final`, but can be initialized at any point during the program's run.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
In .NET it’s just 'static readonly'.