nkiesel
06/07/2017, 9:11 PMelse
, the problem is that there is no access to the value of func()
in the body. There were earlier discussions around that proposing new syntax like when (x = func())
(we can't use it
or this
w/o breaking existing code)