From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Imports / inclusion of s.el into Emacs Date: Sun, 03 May 2020 10:15:07 +0200 Message-ID: <877dxtxwms.fsf@gnus.org> References: <87ftchy0go.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3093"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Emacs developers , Stefan Monnier , Richard Stallman To: Philippe Vaucher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 03 10:15:53 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 1jV9mz-0000iy-Nr for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 10:15:53 +0200 Original-Received: from localhost ([::1]:53764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jV9my-0005dZ-PS for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 04:15:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jV9mO-00050s-Uw for emacs-devel@gnu.org; Sun, 03 May 2020 04:15:16 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:50646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jV9mN-0000iT-Bi; Sun, 03 May 2020 04:15:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=N4/z6oDBNBW+YU/ssOsJ117mlczC74SlT0jDRYwF9MM=; b=GU7zlAgCoeC+1Psp185Wd7iP82 Ue6ElwZ6bqxlH7lJBd47IhFIufSBSVJ650TzFzDmKORIri4pYGtGWBpC7R0vjD/4VudBKUeX59w4L j38Sh0NPMdxhc4p8WdZtZuVVWZf3/DMCnUN1HXx7qwySuC5GhyK3KrtSnsM/9XNyGrc0=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jV9mG-0007FD-MT; Sun, 03 May 2020 10:15:11 +0200 In-Reply-To: (Philippe Vaucher's message of "Sun, 3 May 2020 09:40:43 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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, SPF_PASS=-0.001, URIBL_BLOCKED=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:248651 Archived-At: Philippe Vaucher writes: > No, there is `s-concat`. People would write > > (s-concat "foo" "bar" "zot" "gazonk") Probably not if they'd learned the (nonsensical) prepend/append versions of the functions first. This design is all over the s.el library -- for instance, there's a s-chop-suffix function, and a s-chop-suffixes function, where a natural Lisp design would be to have the suffixes a &rest in a single function. It's understandable for people to want to port over idioms they are familiar with from other programming languages, but it would (usually) be a mistake to incorporate them into the language. s.el is "let's pretend Emacs Lisp is Javascript and/or Clojure"; in a couple of years there'll be an s.el that is "let's pretend Emacs Lisp is Rust or Go" and we'll have the same aliasing discussion all over again. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no