3 ms·
In 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 sa
by schneems 4y ago
In 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”