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.
In .NET it’s just 'static readonly'.