From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] seq-let c856843: New macro seq-let, providing destructuring support to seq.el Date: Fri, 1 May 2015 22:42:02 +0300 Message-ID: References: <20150501173408.20062.32100@vcs.savannah.gnu.org> <87wq0sf8pw.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158b9ca01b38e05150a68ed X-Trace: ger.gmane.org 1430509339 26686 80.91.229.3 (1 May 2015 19:42:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 19:42:19 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 01 21:42:18 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 1YoGpG-0002Rm-1c for ged-emacs-devel@m.gmane.org; Fri, 01 May 2015 21:42:18 +0200 Original-Received: from localhost ([::1]:55330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGpF-00069x-IF for ged-emacs-devel@m.gmane.org; Fri, 01 May 2015 15:42:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGp3-00069j-2F for emacs-devel@gnu.org; Fri, 01 May 2015 15:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoGp2-0005PU-30 for emacs-devel@gnu.org; Fri, 01 May 2015 15:42:05 -0400 Original-Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:34983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGp1-0005PH-S9 for emacs-devel@gnu.org; Fri, 01 May 2015 15:42:04 -0400 Original-Received: by labbd9 with SMTP id bd9so70129737lab.2 for ; Fri, 01 May 2015 12:42:02 -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=aGT/wO3SCADm37xYGTXdDVnO4NdQ0qbFTzUZVBiZNgk=; b=0kEGmxafhLFLV6hOQ1munbAZjVW/o8FT55hlv4KL5o5ULK3zNTqsFmM5i1c8rMEwoP VNOFy+5v7xJByP79zv/M1jnohsx/G7Qn1GytRFp9QaihbngN/7qNWvMgYxuZdvhRBq9+ TF7kAuLVkW4ADIkDhekG20cioC5UhPWjdKNyZCDpTmEQnF1BP2TuqNIpW7awX9+pNjbT 7jljcAWI+mRPOvFB2b0dKvuqacmu9tzt6DSDHiv2+ZmvTjvW9uhmdVplh3yMdom5JQWM 16OECFD58THoXoXqdowEFvrjQQmt+U4qMz6UTwUZM9eCu+XTG0ihSrdKpCnDzYIiPOCK Jn6Q== X-Received: by 10.152.23.163 with SMTP id n3mr9659552laf.34.1430509322349; Fri, 01 May 2015 12:42:02 -0700 (PDT) Original-Received: by 10.112.25.7 with HTTP; Fri, 1 May 2015 12:42:02 -0700 (PDT) In-Reply-To: <87wq0sf8pw.fsf@petton.fr> X-Google-Sender-Auth: TIXX7STPoBtlhEazINw7gsi9FyE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::230 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:186100 Archived-At: --089e0158b9ca01b38e05150a68ed Content-Type: text/plain; charset=UTF-8 seq-let seems pretty useful to me. On 1 May 2015 at 21:34, Nicolas Petton wrote: > > Stefan Monnier writes: > > >> New macro seq-let, providing destructuring support to seq.el > > > > How 'bout adding support for `seq' to pcase instead? > > I.e. add a (seq ...) pattern to pcase. > > You can do that with `pcase-defmacro'. > > Wouldn't that be for a difference usage? If not, can you provide an > example? > > Nico > -- > Nicolas Petton > http://nicolas-petton.fr > --089e0158b9ca01b38e05150a68ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
seq-let seems pretty useful to me.

On 1 May 2015 at 21:34, Nicolas Pet= ton <nicolas@petton.fr> wrote:

Stefan Monnier writes:

>>=C2=A0 =C2=A0 =C2=A0New macro seq-let, providing destructuring supp= ort to seq.el
>
> How 'bout adding support for `seq' to pcase instead?
> I.e. add a (seq ...) pattern to pcase.
> You can do that with `pcase-defmacro'.

Wouldn't that be for a difference usage? If not, can you pr= ovide an
example?

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

--089e0158b9ca01b38e05150a68ed--