From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Should we just start dumping cl-lib? Date: Fri, 2 Oct 2015 16:22:45 +0100 Message-ID: References: <560E0DA7.6080305@dancol.org> <87twq9ebmh.fsf@udel.edu> <87k2r5tmqe.fsf@gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3c026521aec052120bc1f X-Trace: ger.gmane.org 1443804326 22728 80.91.229.3 (2 Oct 2015 16:45:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Oct 2015 16:45:26 +0000 (UTC) To: emacs-devel , Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 02 18:45:25 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 1Zi3SW-00072j-FS for ged-emacs-devel@m.gmane.org; Fri, 02 Oct 2015 18:45:24 +0200 Original-Received: from localhost ([::1]:33206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi3SV-0002Oc-PR for ged-emacs-devel@m.gmane.org; Fri, 02 Oct 2015 12:45:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi2AZ-0001e6-TJ for emacs-devel@gnu.org; Fri, 02 Oct 2015 11:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zi2AY-0000Bq-RM for emacs-devel@gnu.org; Fri, 02 Oct 2015 11:22:47 -0400 Original-Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:33091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi2AY-0000Bf-JU for emacs-devel@gnu.org; Fri, 02 Oct 2015 11:22:46 -0400 Original-Received: by lafb9 with SMTP id b9so6328102laf.0 for ; Fri, 02 Oct 2015 08:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=7sYHexim/bOZR/wJp4EgVPhTcQgkxDMBFB9LVqHU4Oc=; b=OEUvHSTlmeXQVVWrTL7Ga/kjVR2t91cBUye7rCf2YSY1Il63OUpAewqTfx4oZfe0rA 0JzPNWonOBarI0UnvXOKMzL+vbl+lycooMVlyePiKpoqWoj/DCa7NgdQ1GBg1Bj9Ols0 oZsAPMqWx/g4Hwn01HvZ9b4wDmu1t05eu0sIKq1TM6Z+0xCHPdlSy/KQcd0bo6coC1gA DODiLEfiF6Atpi3y9/1DHqwdIUxTHCB6UbrqzB6sGuYVOHL61qKRcSu3cXih1D+E634K KUIS4lvOWsVxFnYBxOWgIJX3+PqdlROYgRw2R8lNOI8hMpQRl3C6U7EStDsD05yOs7s9 4YJA== X-Received: by 10.112.53.68 with SMTP id z4mr5759351lbo.4.1443799365718; Fri, 02 Oct 2015 08:22:45 -0700 (PDT) Original-Received: by 10.25.27.78 with HTTP; Fri, 2 Oct 2015 08:22:45 -0700 (PDT) Original-Received: by 10.25.27.78 with HTTP; Fri, 2 Oct 2015 08:22:45 -0700 (PDT) In-Reply-To: <87k2r5tmqe.fsf@gnu.org> X-Google-Sender-Auth: dRg833hGC2_BdgMyjBJC_gAaFwA X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22c 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:190714 Archived-At: --001a11c3c026521aec052120bc1f Content-Type: text/plain; charset=UTF-8 I agree. seq-filter is fine and seq.el is bundled with Emacs, so it should be enough. There's also an equivalent in cl under a different name. We have enough unprefixed symbols already, let's not start adding more unless they are very basic things like `def` macros or flow control macros. On 2 Oct 2015 2:37 pm, "Tassilo Horn" wrote: > > Mark Oteiza writes: > > >> Commit d605a539d4863c7e7c66aaea6e538ae14c47f3d7 broke Emacs when > >> winner was enabled without cl-lib being loaded. Nobody seems to have > >> noticed until now, which suggests that either almost nobody uses > >> winner, or almost everybody has cl-lib loaded anyway. Maybe it's time > >> to just dump cl-lib with Emacs. > > > > Bug#21549 > > > > I'd be happy to have more useful functions in "core". (Can we have > > `filter` yet?) > > There are `seq-filter', `seq-remove', `seq-map', `seq-mapcat', > `seq-reduce', etc. in the new seq.el, and a nice API for associative > structures in map.el which are in "core" although not dumped just like > cl-lib. > > Many seq.el functions have cl-lib counterparts which do pretty much the > same. So the decision if cl-lib should be dumped is also a strategic > decision. Do we want to advocate seq.el or cl-lib? (Well, right now > seq.el depends on cl-lib so we couldn't dump seq.el without cl-lib but > anyway...) > > Bye, > Tassilo > --001a11c3c026521aec052120bc1f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I agree. seq-filter is fine and seq.el is bundled with Emacs= , so it should be enough. There's also an equivalent in cl under a diff= erent name.

We have enough unprefixed symbols already, let's not sta= rt adding more unless they are very basic things like `def` macros or flow = control macros.

On 2 Oct 2015 2:37 pm, "Tassilo Horn" <tsdh@gnu.org> wrote:
>
> Mark Oteiza <mvoteiza@udel.edu= > writes:
>
> >> Commit d605a539d4863c7e7c66aaea6e538ae14c47f3d7 broke Emacs w= hen
> >> winner was enabled without cl-lib being loaded. Nobody seems = to have
> >> noticed until now, which suggests that either almost nobody u= ses
> >> winner, or almost everybody has cl-lib loaded anyway. Maybe i= t's time
> >> to just dump cl-lib with Emacs.
> >
> > Bug#21549
> >
> > I'd be happy to have more useful functions in "core"= ;. (Can we have
> > `filter` yet?)
>
> There are `seq-filter', `seq-remove', `seq-map', `seq-mapc= at',
> `seq-reduce', etc. in the new seq.el, and a nice API for associati= ve
> structures in map.el which are in "core" although not dumped= just like
> cl-lib.
>
> Many seq.el functions have cl-lib counterparts which do pretty much th= e
> same.=C2=A0 So the decision if cl-lib should be dumped is also a strat= egic
> decision.=C2=A0 Do we want to advocate seq.el or cl-lib?=C2=A0 (Well, = right now
> seq.el depends on cl-lib so we couldn't dump seq.el without cl-lib= but
> anyway...)
>
> Bye,
> Tassilo
>

--001a11c3c026521aec052120bc1f--