News in English

Rust stabilizes inline const expressions

The Rust Team has released Rust 1.79, an update to the memory safe programming language that stabilizes both inline const expressions and the associated item bounds syntax.

Unveiled June 13, Rust 1.79 can be installed by running rustup update stable.

With Rust 1.79, const { … } blocks now are stable in the expression position, thus permitting explicitly entering a const context without needing extra declarations. Unlike const items, inline consts can make use of in-scope generics and have their type inferred rather than explicitly written, making them particularly useful for inline code snippets. This improvement makes code more succinct and easier to read, the Rust Team said.

To read this article in full, please click here

Читайте на 123ru.net