From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.devel Subject: Re: Imports / inclusion of s.el into Emacs Date: Sun, 3 May 2020 09:40:43 +0200 Message-ID: References: <87ftchy0go.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b5828705a4b989b7" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129597"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers , Stefan Monnier , Richard Stallman To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 03 09:42:57 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jV9H7-000Xd4-QK for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 09:42:57 +0200 Original-Received: from localhost ([::1]:57976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jV9H6-0002Uo-Sp for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 03:42:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jV9FR-0001KN-CE for emacs-devel@gnu.org; Sun, 03 May 2020 03:41:13 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:47012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jV9FQ-0006RY-J8; Sun, 03 May 2020 03:41:13 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id g10so7012252lfj.13; Sun, 03 May 2020 00:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aAe3rxHjMg2fLsoAnAF812PlxnY7kSiH0Gxc6Syr1+Y=; b=umdSTWS1rMpgZP/UuidIy7pX9ERFq6zJ+lytR3WfFURhjtbk+yiFOUW/w0ssHFsGfO ASRcc8BDx7XjwR25ll8vmpk3b8nngBSTafOm8qlj5TiWVockvdH86xEyrMa7QtZXnK08 9XPQv6rQtOMzMxX3xr0aWQbzk1JKlZThkBPbZl4Lew0Lq8iLtQODzHGoAbuB/4W1fB8i HFJqBqONc/k97xzT0QNAfeSelFw9y0iZuDuNM1csw/B6cMPw1QI2Ujj3EGGxSNKLbRDg RV0gJIoV0VikLQIShawEC8Mtr5w9zs3fqvcVWQ4ODScen3/Fczeb5eUOkBKV3HM4pMuy eIbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aAe3rxHjMg2fLsoAnAF812PlxnY7kSiH0Gxc6Syr1+Y=; b=Ied67T+wz6r5qhB06OfKwCM4OQCaum5uhiPWyYiNSyVeVAHKXj3cK41B4r+yZtC9OG lM/VY7zB9nzKBpxYj+4zIpjr6SmT/xl8YmGyXv4R9Mn5LiwTeWWgoYWtwmU2ACrX+Irl PP45PyTLsAFpW54duH0co7EaQYFI6sbRE5lwBCNqdPWZjiBqfpewYCQAdDhkSxsWuehA WIi9F1mF8mYHcFsSgl8h0nZkZwhAefgUceIkmNB4YPSSp/XaTY4cNO9yVk9ssQtCt/Yh TuOeUXSvVHZnPlTV3IJ0A0fsqvU6au/bMzLGFLF3z9Rgm4Y5bkbpb9b1+mlhjcQOpKoK 8lDA== X-Gm-Message-State: AGi0PuaWaYWlD2KLURPNyz8GdNmOLOcqBBXCLVc2Qml8Fll3h/FV7vWF /7SHpR7vni+0wzEfi3iA0v480MBNMGkkniTc0ZM= X-Google-Smtp-Source: APiQypKeAkWeCY5XBQqfmVuV+OPNtgqnrtmclviW8sYn3pdl3FTTf1nREH0ZmB0Qc+4oYVfFNCPiBJDGKwF65H3OX1Y= X-Received: by 2002:ac2:5482:: with SMTP id t2mr6838422lfk.202.1588491669830; Sun, 03 May 2020 00:41:09 -0700 (PDT) In-Reply-To: <87ftchy0go.fsf@gnus.org> Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=philippe.vaucher@gmail.com; helo=mail-lf1-x12c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248642 Archived-At: --000000000000b5828705a4b989b7 Content-Type: text/plain; charset="UTF-8" > > But it leads to non-idiomatic Emacs Lisp code. For instance, variadic > functions aren't common in those languages, so you end up with oddities > like s-prepend and s-append, and if that's what the user thinks is > available, then you end up with code like > > (s-append (s-append (s-append "foo" "bar") "zot") "gazonk") > > instead of > > (concat "foo" "bar" "zot" "gazonk") > > That is, s.el leads to bad Emacs Lisp code, and I don't think it's a > good idea to have something like that (even with less lodash-like name) > in Emacs. > No, there is `s-concat`. People would write (s-concat "foo" "bar" "zot" "gazonk") That said it was already said that `s-prepend` and `s-append` were likely to not make it to Emacs core, which is fine by me. It's the other functions I'm more interested in. Philippe --000000000000b5828705a4b989b7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
But it leads to non-idiomatic Emacs Lisp code.=C2=A0 For= instance, variadic
functions aren't common in those languages, so you end up with oddities=
like s-prepend and s-append, and if that's what the user thinks is
available, then you end up with code like

=C2=A0 (s-append (s-append (s-append "foo" "bar") "= ;zot") "gazonk")

instead of

=C2=A0 (concat "foo" "bar" "zot" "gazonk= ")

That is, s.el leads to bad Emacs Lisp code, and I don't think it's = a
good idea to have something like that (even with less lodash-like name)
in Emacs.

No, there is `s-concat`. Peop= le=C2=A0would=C2=A0write

(s-concat "foo"= "bar" "zot" "gazonk")

That said it was already said that `s-prepend` and `s-append` were likel= y to not make it to Emacs core, which is fine by me. It's the other fun= ctions I'm more interested in.

Philippe
<= /div>
--000000000000b5828705a4b989b7--