Re: [Vala] Operator overloading



On Tue, 2009-03-24 at 15:15 +0100, pancake wrote:
Why do you want to limit those operators statically linked to native or 
pseudo-native
data types to the compiler instead of letting the developer to choose?

Because in the end it's unreadable. Math operators should be limited to
purely math operations, on integers and reals. Otherwise people will
create operators with side-effects, and parsing that code will be
error-prone at best for a human.

I have seen what operator overloading does in a big project with
"creative" programmers. No thanks.

        Xav





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]