[bind10-dev] Operators
Michal 'vorner' Vaner
michal.vaner at nic.cz
Tue Feb 21 10:46:11 UTC 2012
Hello
On Tue, Feb 21, 2012 at 11:24:46AM +0100, Jelte Jansen wrote:
> On a related note; should we also by default overload the relevant
> operators if we have their corresponding methods? (i am just writing
> one that has an equals() for instance)
I don't know if we should, I feel a lot of pro-java tendencies in our styles.
However, it is more convenient if the operators are there, provided they are
sane (like == returning the exact opposite of != every time, a < b being the same
as b > a, etc.). So, if it is clear from context how they should be compared, I
tend to think it is good to have them, if it makes no real sense (like
Name("example.com") == 2 could return true because it has exactly two labels),
then definitely not.
With regards
--
Wait few minutes before opening this email. The temperature difference
could lead to vapour condensation.
Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20120221/66f18ad0/attachment.bin>
More information about the bind10-dev
mailing list