Re:A taste of Rust
by Dewie on Thursday April 25, 2013 @12:51PM
(#5608293)
What about making it optional, like in Haskell?
[ Parent
| on HN ]
Re:A taste of Rust
by steveklabnik on Thursday April 25, 2013 @01:19PM
(#5608512)
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.
You could still make braces optional though, right?
Re:A taste of Rust
by steveklabnik on Thursday April 25, 2013 @01:48PM
(#5608716)
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.