Multiple return values

bearophile bearophileHUGS at lycos.com
Wed Jan 4 13:59:48 PST 2012


deadalnix:

> I do agree with Andrei. Those are 2 orthogonals problems. The 
> optimization problem is clearly something that can be improved in D ABI. 
> Then, returning a tuple could be improved using thoses rules.

I agree.


> The multiple retur value problem is syntaxic sugar. It may be 
> interesting, but not #1 priority.

I don't agree. In this moment of the D development it's still more important to design D well than to squeeze every bit of performance out of the reference implementation.

Example: currently vector operations have some small syntax (and maybe semantic) problem, plus performance problems. I think fixing their syntax is currently more important.

Fixing performance problems is possible to do later in GDC/LDC if the language design is good, but fixing the syntax later is quite harder to do.

Bye,
bearophile


More information about the Digitalmars-d mailing list