rolgalan
12/24/2015, 1:34 PM(if (cond) a else b).foo()
it’s ok but (if (cond) a else b) = x
should be questionable? After all both are operating to an object returned by the if expression. I understand assignment is a completely different thing than access a method/field, but what could be wrong with that? It’s a theory problem within the language paradigm or a practical problem for the compiler?