Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Currently, lines with and without semicolons have different semantics, so that doesn't work.

> Basically, ending an expression in Rust with a semicolon ignores the value of that expression. This is kinda weird. I don't know how I feel about it. But it is something you should know about.

http://www.rustforrubyists.com/book/chapter-06.html



You could still make braces optional though, right?


You could do whatever you want. The idea is that `rustc --pretty` reformats code, so you could make the input flexible enough to be whatever you want, really. Or write your own transpiler.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: