Get the latest tech news

"Hygienic" Let Statements in Rust


Remon is a responsible library developer. She cares about stability, flexibility and correctness, using whichever tools are presently accessible to achieve those goals. Her authored libraries feature automated testing and extensive documentation; she allots design decisions rationale; she knows her language features and traditions and how to apply them to best effect.

Well, Wolfie says, this macro is very impressive feat, and shall surely ease the lives of our users, provide ergonomics inaccessible by traditional methods, and bring to life the great gift of syntax without glue added to the cogs of the build process. And upon entering input that is not the latest commit hash of the greatest Rust library of all time, Remon is dismayed and ashamed to discover that the code, incorrectly, results in an error. This is of course not as bad as buggy behaviour, but Wolfie knows that Remon is a responsible library developer who cares about flexibility and correctness, and it is unpredicable that the macro would suddenly start failing just because of some constants that happen to be there at the call site.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of statements

statements

Related news:

News photo

Rewriting Rust

News photo

Rust In Linux 6.12 Prepares For Rust Binder, Supports Sanitizers & CPU Mitigations

News photo

Committing to Rust in the Kernel