News for hackers. Stuff that matters.
Re:Cursed Linear Types in Rust by neonsunset on Sunday December 01, 2024 @04:29PM (#42290860)
Reading the JEP, isn’t StableValue about JIT constants?

In .NET it’s just 'static readonly'.

Re:Cursed Linear Types in Rust by cempaka on Sunday December 01, 2024 @06:28PM (#42291568)
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.