Rust semicolon handling is risky
Rust semicolon handling is risky
Posted Jun 8, 2013 13:19 UTC (Sat) by cmrx64 (guest, #89304)In reply to: Rust semicolon handling is risky by renox
Parent article: Little things that matter in language design
It's really quite manageable and not nearly as complex as the article makes it out to be (at least not in practice).
See https://github.com/cmr/terminfo-rs/blob/master/searcher.rs or any other rust code, for example.
The return keyword is *encouraged* to be used, it's not to be avoided at all. But it doesn't make sense to use as the result of an expression, because then you can't return from the function!