DIP1001: DoExpression

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 07:26:30 PDT 2016


On Saturday, 3 September 2016 at 14:20:28 UTC, 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.

The same can be already achieved using a function literal.
Introducing an expression for this seems overkill.


More information about the Digitalmars-d mailing list