Rust 1.80 Adds Support for Lazy Statics, Extends Ranges in Patterns, and More

Rust 1.80 stabilizes LazyCell and LazyLock, two new types that can be used to delay initialization of data until the first time they are accessed. It also brings support for exclusive ranges as well as a couple of related lint warnings. Additionally, it allows variadic functions without a named parameter for compatibility with C23, stabilizes many APIs, and more.

By Sergio De Simone

Leave a Reply

Your email address will not be published. Required fields are marked *