2 ms·
Interestingly my main quality of life improvement when writing Rust is being able to leave the brackets around the test in an if statement empty (vs C/C++/PHP_)
by wink 4y ago
Interestingly my main quality of life improvement when writing Rust is being able to leave the brackets around the test in an if statement empty (vs C/C++/PHP_), I don't care about the square brackets for the body as much.
- schneems 4y agoIn Rust it’s clear when the logic of the “if” is over because it’s always followed by a curly and it’s pretty easy to detect if you missed the curly. Im not saying that more syntax is always better, but sometimes that extra bit that seems needless is helpful to clarify to the program “yep I meant what I wrote”