Re: Moving forward with work on the D language and foundation

2015-08-24 Thread shannon mackey via Digitalmars-d-announce

On Monday, 24 August 2015 at 22:04:58 UTC, rsw0x wrote:

On Monday, 24 August 2015 at 19:14:46 UTC, Joseph Cassman wrote:
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu 
wrote:

Hello everyone,




[...]




+1.

Andrei is a major reason I decided to use D in the first place, 
his presence in the C++ community was very influential. Seeing 
him personally put a large portion of his life aside to push D 
forward is very reassuring that D is not on the way out.


++1!
ditto


Re: Rant after trying Rust a bit

2015-07-23 Thread shannon mackey via Digitalmars-d

On Thursday, 23 July 2015 at 15:37:24 UTC, shannon mackey wrote:
 On Wednesday, 22 July 2015 at 19:41:16 UTC, Jack Stouffer 
wrote:

On Wednesday, 22 July 2015 at 20:43:04 UTC, simendsjo wrote:

On Wednesday, 22 July 2015 at 18:47:33 UTC, simendsjo wrote:

[...]


Don't quite know what you mean here.


When everything is an expressions, you can write things like
auto a = if(e) c else d;

In D you have to write
type a = invalid_value;
if(e) a = c;
else  a = d;
assert(a != invalid_value);



I frequently do things like this in D:

auto good = ( true == true ) ? true : false;

which looks a lot like your Rust example?  Is that not what you 
were looking for?


Sorry, I didn't read to the end of the thread, and this has been 
covered many times.


Re: Rant after trying Rust a bit

2015-07-23 Thread shannon mackey via Digitalmars-d
 On Wednesday, 22 July 2015 at 19:41:16 UTC, Jack Stouffer 
wrote:

On Wednesday, 22 July 2015 at 20:43:04 UTC, simendsjo wrote:

On Wednesday, 22 July 2015 at 18:47:33 UTC, simendsjo wrote:

Expressions
---
This probably also falls in the too late category, but 
statements-as-expressions is really nice. `auto a = if ...` 
- why not?


Don't quite know what you mean here.


When everything is an expressions, you can write things like
auto a = if(e) c else d;

In D you have to write
type a = invalid_value;
if(e) a = c;
else  a = d;
assert(a != invalid_value);



I frequently do things like this in D:

auto good = ( true == true ) ? true : false;

which looks a lot like your Rust example?  Is that not what you 
were looking for?