Closed ghost closed 8 months ago
We have
if (const a = get ()){}
also
while (const a = get ()){}
It's time to recognize that this is an expression.
if ((const a = get()) && a.b) {}
Semantics are bit tricky tho, because of scopes, but proven to work. Really worth.
We have
also
It's time to recognize that this is an expression.
Semantics are bit tricky tho, because of scopes, but proven to work. Really worth.