From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] emacs-25 a9c48d5: Additional fixes for file notification Date: Wed, 24 Feb 2016 14:52:01 +1100 Message-ID: <8737silq8u.fsf@gnus.org> References: <20160222175244.30186.2617@vcs.savannah.gnu.org> <87k2lwv5ob.fsf@gmx.de> <87egc4v4hs.fsf@gmx.de> <8bd4ec21-1306-41bf-aca7-5571a3014337@default> <87r3g4js64.fsf@gmail.com> <877fhuq2bw.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456285988 5804 80.91.229.3 (24 Feb 2016 03:53:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 03:53:08 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 24 04:53:00 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYQVX-0004bx-Mf for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 04:52:59 +0100 Original-Received: from localhost ([::1]:33299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYQVX-0002va-7O for ged-emacs-devel@m.gmane.org; Tue, 23 Feb 2016 22:52:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYQVG-0002uU-4n for emacs-devel@gnu.org; Tue, 23 Feb 2016 22:52:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYQVC-0000SI-31 for emacs-devel@gnu.org; Tue, 23 Feb 2016 22:52:42 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYQVB-0000RN-Sf for emacs-devel@gnu.org; Tue, 23 Feb 2016 22:52:38 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYQUf-0007mx-N8; Wed, 24 Feb 2016 04:52:06 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 23 Feb 2016 22:32:03 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYQUf-0007mx-N8 MailScanner-NULL-Check: 1456890727.28061@gbf86ZLFy3rm/ReOJp92dQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200590 Archived-At: Stefan Monnier writes: > First time I see it mentioned in this context. Why/where do you use it? I use it everywhere I want to check whether something is larger than zero... > The only place where it seems to make sense is in #'plusp (since > otherwise (> x 0) is actually more concise&efficient&precise than (plusp > x) which is my mind suffers from the annoying "is 0 positive?" issue), > but "grep" seems to indicate that's not used anywhere within Emacs (nor > GNU ELPA). That's because I always change it to (if (> foo 0) ..) after first writing (if (plusp foo) ...). :-) Try grep --color -nH -e "(>.*\b0\b" `find . -name '*.el'` instead. 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 of immediately getting that it's a check for positivity. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no