From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: no empty (zero) string predicate in Elisp Date: Sat, 16 May 2015 16:28:32 +0300 Message-ID: References: <87h9s4rhx5.fsf@debian.uxu> <87wq107e40.fsf@petton.fr> <87a8x4ub83.fsf@blueberry.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013c6b92e8bf68051632ef18 X-Trace: ger.gmane.org 1431782924 7864 80.91.229.3 (16 May 2015 13:28:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2015 13:28:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Emanuel Berg , emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 16 15:28:44 2015 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 1Ytc8u-0005z3-VA for ged-emacs-devel@m.gmane.org; Sat, 16 May 2015 15:28:41 +0200 Original-Received: from localhost ([::1]:34636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytc8u-0007qT-7x for ged-emacs-devel@m.gmane.org; Sat, 16 May 2015 09:28:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytc8r-0007qE-3v for emacs-devel@gnu.org; Sat, 16 May 2015 09:28:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ytc8q-0001C4-3k for emacs-devel@gnu.org; Sat, 16 May 2015 09:28:37 -0400 Original-Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:34635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytc8n-0001B6-MA; Sat, 16 May 2015 09:28:33 -0400 Original-Received: by laat2 with SMTP id t2so159957306laa.1; Sat, 16 May 2015 06:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=mjW6gVtorFHascb02o5g/Le3d2PGNP0bf7TOonqUp6g=; b=phFo2tw7K2ZNvk5/Qsr2MHnox10Dl3FattrYjaPz08wZegTZcxAqRmE/Zb+CHbR+pU fd2qNPgCC8zAAD5bWrDjvX5T2+04WdpTJRjqWLa5IEG79wyOSgnK3kZ3urClqvMMKrAB 6p0kY3zaMf1Hj7MeXEQkxWIO92wq6qkmEj7oFYicn7+9YDlNbWMmMolnMOlrxuF+slcc pGHxpHB+19FRnOQJC3qW6qOWchsOCHM7Q512fHcyHChtAjtES9ZXmiYCKtIWAJ40jO4L E1CH03n+DyiV+IMa/dm8eMmk8g6KmTupM0OtREbeLxNEQF9W9B114zY4dVc+wSG5Nywt IrKA== X-Received: by 10.152.2.38 with SMTP id 6mr10973124lar.80.1431782912735; Sat, 16 May 2015 06:28:32 -0700 (PDT) Original-Received: by 10.112.25.7 with HTTP; Sat, 16 May 2015 06:28:32 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: PACyafVu76qWXuKtBbdZA2ZjYkw X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::233 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:186532 gmane.emacs.help:104466 Archived-At: --089e013c6b92e8bf68051632ef18 Content-Type: text/plain; charset=UTF-8 Btw, `string-reverse` was already obsoleted by `reverse`. On 16 May 2015 at 16:22, Bozhidar Batsov wrote: > I'd advise against this, as my intuition would always be to search for > something starting with `string-` when dealing with strings. > > On 16 May 2015 at 12:23, Nicolas Petton wrote: > >> >> Nicolas Petton writes: >> >> > You can use `string-empty-p' from subr-x.el or `seq-empty-p' from >> > seq.el (which works on all sequence data types). >> > >> > seq.el will be included in Emacs 25.1, but in the meantime you can >> > install it from GNU Elpa. >> >> BTW, would it be wise to obsolete `string-reverse' and `string-empty-p' >> From subr-x in favor of `seq-reverse' and `seq-empty-p' which are much >> more generic? >> >> Nico >> -- >> Nicolas Petton >> http://nicolas-petton.fr >> > > --089e013c6b92e8bf68051632ef18 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Btw, `string-reverse` was already obsoleted by `reverse`.= =C2=A0

On 16= May 2015 at 16:22, Bozhidar Batsov <bozhidar@batsov.com> = wrote:
I'd advise ag= ainst this, as my intuition would always be to search for something startin= g with `string-` when dealing with strings.=C2=A0

On 16 May 2015 at 12:23, Nicolas Petton <nicolas@petton.fr> wrote:

Nicolas Petton writes:

> You can use `string-empty-p' from subr-x.el or `seq-empty-p' f= rom
> seq.el (which works on all sequence data types).
>
> seq.el will be included in Emacs 25.1, but in the meantime you can
> install it from GNU Elpa.

BTW, would it be wise to obsolete `string-reverse' and `string-empty-p&= #39;
>From subr-x in favor of `seq-reverse' and `seq-empty-p' which are m= uch
more generic?

Nico
--
Nicolas Petton
http://nicolas-petto= n.fr


--089e013c6b92e8bf68051632ef18--