Little things that matter in language design: make it do what it looks like it does
Little things that matter in language design: make it do what it looks like it does
Posted Dec 29, 2014 11:21 UTC (Mon) by maryjmcdermott57 (guest, #100380)In reply to: Little things that matter in language design: make it do what it looks like it does by Cyberax
Parent article: Little things that matter in language design
Yes, of course I can't combine 2 expressions together. So what about if/else & expression3. Both are expressions, right? But we can omit the ; at if/else expression in some cases. That makes no sense if we can omit ; at if/else expression but can't do that with println!("hello"). If we want consistent, Rust should force add ; at if/else (after the closing } of else) expression too