From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: no empty (zero) string predicate in Elisp Date: Sat, 25 Apr 2015 09:30:55 -0400 Message-ID: References: <87h9s4rhx5.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429968696 1961 80.91.229.3 (25 Apr 2015 13:31:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Apr 2015 13:31:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 25 15:31:28 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Ym0B3-0001s8-FO for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Apr 2015 15:31:25 +0200 Original-Received: from localhost ([::1]:48427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym0B2-0000oc-GG for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Apr 2015 09:31:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym0At-0000oU-5S for help-gnu-emacs@gnu.org; Sat, 25 Apr 2015 09:31:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ym0Ao-0006up-VV for help-gnu-emacs@gnu.org; Sat, 25 Apr 2015 09:31:15 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym0Ao-0006uY-PO for help-gnu-emacs@gnu.org; Sat, 25 Apr 2015 09:31:10 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ym0Al-0001XN-8m for help-gnu-emacs@gnu.org; Sat, 25 Apr 2015 15:31:07 +0200 Original-Received: from 76-10-168-214.dsl.teksavvy.com ([76.10.168.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Apr 2015 15:31:07 +0200 Original-Received: from monnier by 76-10-168-214.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Apr 2015 15:31:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 76-10-168-214.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:ai87oUTU5vT+GME1vExFZkifsys= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103995 Archived-At: >>>>> "Emanuel" == Emanuel Berg writes: > In one of my w3m extensions [1] I have > (defun empty-string-p (str) > (string= str "") ) I do wonder, why you'd rather write (empty-string-p foo) instead of (equal "" foo) or (string= "" foo) I mean, really, what's the gain? It's longer, slower, and not higher-level either. Stefan "yes, I know Elisp has `zerop' but that's stupid as well"