Re: [Vala] Operator overloading
- From: Xavier Bestel <xavier bestel free fr>
- To: pancake <pancake youterm com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Operator overloading
- Date: Tue, 24 Mar 2009 15:25:50 +0100
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]