Discussion Thread: DIP 1043--Shortened Method Syntax--Community Review Round 1

Adam D Ruppe destructionator at gmail.com
Wed Feb 9 13:06:46 UTC 2022


On Wednesday, 9 February 2022 at 13:05:35 UTC, Adam D Ruppe wrote:
> it could be translated to `x { return cast(typeof(return))( y 
> ); }`

actually wait i think this breaks return type inference so that 
impl would suck after all.

the thing that actually kicked off this implementation was 
writing to write:


@property foo() => this._foo;


which is an inferred return type so breaking that would be no 
good!


More information about the Digitalmars-d mailing list