On 9/30/2011 9:01 AM, Christophe wrote:
If the common type is obvious, the programmer can just type it.
What if it's ridiculously long and verbose?
If not, I do not want to rely on the compiler to perform implicit casting to a type that I don't even know, and where I might loose informations, unless there is an unambiguous and error-free way to determine the comon type. I prefer the compiler to complain about an ill-defined return type than a compiler making uncontrolled casting to a type I don't even know. If auto return type has to be improved, it must be using a very safe and clearly defined behavior.
I was thinking it would work the same way as the ?: operator does.
