On 10/21/16 10:12 AM, Temtaime wrote:
On Friday, 21 October 2016 at 13:42:49 UTC, Adam D. Ruppe wrote:
On Friday, 21 October 2016 at 13:33:26 UTC, Stefan Koch wrote:
[...]
Eh, that's exactly what the language rules say should happen, and it
actually does make sense to me... you might even want to use an
immediately-called lambda to group several statements together into
one expression.
[...]
Please, no.
It's fully clear that { stmts } createa a lambda, just () is ommited.
No, it's not.
{ int x; x = 2; }
Is not a lambda. It's a scope.
So the meaning changes based on where it's used. I totally agree that we
should remove that feature.
-Steve