On 09/14/2015 07:32 AM, burjui wrote:
On Sunday, 13 September 2015 at 17:16:40 UTC, Daniel N wrote:int opCmp(Foo rhs) { return (id > rhs.id) - (id < rhs.id); }IMO, subtracting boolean values is bad code style
I love it! -- Andrei
Andrei Alexandrescu via Digitalmars-d Mon, 14 Sep 2015 11:26:39 -0700
On 09/14/2015 07:32 AM, burjui wrote:
On Sunday, 13 September 2015 at 17:16:40 UTC, Daniel N wrote:int opCmp(Foo rhs) { return (id > rhs.id) - (id < rhs.id); }IMO, subtracting boolean values is bad code style
I love it! -- Andrei