A simplification of the RvalueRef idiom

Guillaume Piolat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 22 15:43:58 PST 2016


On Tuesday, 22 November 2016 at 16:57:28 UTC, kink wrote:
>
> I hate this 'idiom' too (just a clumsy workaround for something 
> that should work out of the box), but the non-bindability of 
> rvalues to ref params and the associated dispute is veeery old, 
> nothing new, so I don't agree that the language gets worse 
> every day. ;)

d-idioms doesn't always paint a rosy picture of D, that's true. 
It's about "what can we do now with D, whatever it takes". It 
turns out almost everything can be done, but some things are 
worse than in other languages of course.

The baby is too cute to throw with the bathwater ;)


More information about the Digitalmars-d-learn mailing list