|
From: | Dmitry Gutov |
Subject: | Re: [Emacs-diffs] emacs-25 a9c48d5: Additional fixes for file notification |
Date: | Wed, 24 Feb 2016 14:21:23 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
On 02/24/2016 06:09 AM, Stefan Monnier wrote:
As for concise... sure, in characters. But not in meaning. If I'm reading code, I'm reading "if that is bigger than... zero!" instead ofJust write it (> 0 x) so you don't have to "..." until the punchline.
I think you've just demonstrated that it's easy to make a mistake in the order of >'s arguments.
immediately getting that it's a check for positivity.As mentioned, I never remember which kind of "positivity" is used where, whereas (> 0 x) and (>= 0 x) are 100% unambiguous.
Never been a problem for me. "more or equal to zero" is natnump (which is already a built-in, though I've never had an occasion to use it personally). The divide between positive and natural numbers seems pretty clear-cut.
[Prev in Thread] | Current Thread | [Next in Thread] |