Rant after trying Rust a bit

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 23 07:36:13 PDT 2015


On 2015-07-23 12:56, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm at gmx.net>" 
wrote:

>> Expressions
>> -----------
>> This probably also falls in the "too late" category, but
>> statements-as-expressions is really nice. `auto a = if ...` <- why not?
>
> Generally I find this an elegant concept. But in Rust, it leads to the
> distinction between expressions terminated with `;` and those without,
> which in turn makes it necessary to use braces even if you have only one
> statement or expression. This is something that I dislike very much.

In Scala there's no problem. No semicolons are required a no braces.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list