DIP1001: DoExpression

rikki cattermole via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 07:25:49 PDT 2016


On 04/09/2016 2:20 AM, Dicebot wrote:
> DIP: https://github.com/dlang/DIPs/blob/master/DIPs/DIP1001.md
>
> Abstract
> --------
>
> A DoExpression do(x,y,z) is exactly equivalent to a CommaExpression
> (x,y,z), but doesn't emit a deprecation warning.
>
> ==============================================
>
> First community DIP has just landed the review queue. Please express
> your opinion and suggestions - it will all be taken into consideration
> when the formal review time comes.

I propose a slight change:

do(x, y, return z)

To make it clear that z is the one being returned.
Otherwise how does somebody who isn't familiar with D know what it is doing?



More information about the Digitalmars-d mailing list