News for hackers. Stuff that matters.
Re:Such a Little Thing: The Semicolon in Rust by windle on Thursday October 18, 2012 @11:16PM (#4672131)
I still don't understand why they couldn't just introduce a new keyword that has the same meaning as a missing semicolon. Call it 'ret' or something as a 'lesser return'. Relying on ppl to be semicolon hunters is poor for readability.

It also means you can't put more expressions on the same line because doing so requires a semi-colon which then eliminates the special semicolon behavior. Having an explicit 'ret' keyword means you could accomplish that and have more expressions for a separate block on the same line if desired.

There are no comments on this comment yet.