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:33:06 +0200 Message-ID: References: <83368ivmym.fsf@gnu.org> <5f91c6e5-b4af-4478-b221-4ca37f0fb74c@default> <2afdde98-4d71-4847-8ee4-b0eee677baef@default> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007b1f2905a4b96edc" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="96029"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Emacs developers , Stefan Monnier , Richard Stallman To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 03 09:34:19 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 1jV98l-000Os7-BV for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 09:34:19 +0200 Original-Received: from localhost ([::1]:50046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jV98k-0005W7-Ee for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 03:34:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jV984-0004US-4C for emacs-devel@gnu.org; Sun, 03 May 2020 03:33:36 -0400 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:34671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jV983-00020n-B9; Sun, 03 May 2020 03:33:35 -0400 Original-Received: by mail-lf1-x12f.google.com with SMTP id s9so1846934lfp.1; Sun, 03 May 2020 00:33:34 -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=7S2/m/c8GEeedO+m1aq4XkGTRE2Fbv8wIGcXwfVW5KU=; b=sgf0V6l9KPXV+jqPXIFXr7m5dSbiccUHOJlXoH5utirRMdqeOcz3ZUxwiCq/qV2cQF zMeYa6qsjeJbrw2f2BwVYQ2OJwd+ydx42zE+hcQfvZ0KquZlUi3C7bhMKZ83SpHGHSSS dpA7AiX54tSzplkuLBvCp/7x3kttO64mVXcT6AuC9IvYPehmO815DPYCgpOQEDpai49p zfz7Mtq22dROP/veU+pEOmeT5EtC3xxjB2g9LScGr8ly+cjryt/Wf2uUFPCRtVh5nrSW NoMBjnHIRx6vnI0xjut3ENHOtYHRswc5gaAtQg8KslXtUUH9bcSutoF1tUI7orrAB6vj J4sA== 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=7S2/m/c8GEeedO+m1aq4XkGTRE2Fbv8wIGcXwfVW5KU=; b=tf9c3DN73xCasLaEt1s+ISxfZWGhjijUqXXWskwizs2Qh7z2iZdKuctS/p1QlBB30H T73itkD78v83fWWCJHAjO4RBJMjaEr9MkL7q1VFB3aEQffibHzK65tXRi7R5W8NRBuUk /UaSCoNI40xMoH4FWlJM1UVDjzTi5Tru7eEVBkBg/b2Ymmfrurui3XfXuLBkVc/Q0DpL SRO1/OL9AYNbMCclB77WXJ78lwO0ILEXTk8FrZk14TaH/y3BWuJN02U+5B3fRpeiADB7 HkcQd06vH+zJuZtehaTgTxfxOU6ssa1LVSmOw8PDikHTZgsn38k4bdjoJexb0DGmI1XV Pkaw== X-Gm-Message-State: AGi0PubZ/5hUxPiOHR/Sm95CxFou1mVcu8cW04CO5GKHsG7b0DkyJRl9 HGdWuAgfsM9b2mHniTiB4KSCIq5tLSAopUQqe48= X-Google-Smtp-Source: APiQypLptXOKy9/EaQskezfVjKVGEKqtyauEQGBwg7KVaKvjRfD5dmuLW/LqRhLPVg4gEVPQJ16v9fNKSwyzFgI1GXs= X-Received: by 2002:a19:6a10:: with SMTP id u16mr3800624lfu.105.1588491213019; Sun, 03 May 2020 00:33:33 -0700 (PDT) In-Reply-To: <2afdde98-4d71-4847-8ee4-b0eee677baef@default> Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=philippe.vaucher@gmail.com; helo=mail-lf1-x12f.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, 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:248641 Archived-At: --0000000000007b1f2905a4b96edc Content-Type: text/plain; charset="UTF-8" > > In Haskell, do you name every function with a > > prefix that advertises the type of its return > > value or one of its main arguments? > > [... replies pointing out that some Haskell > functions do prefix their names with type names...] > > I suggest those of you who think that Haskell > too deserves type-name prefixes for all its > function names start an initiative to rename > its `map', `add', `zip', `head', ... functions. > https://hackage.haskell.org/package/containers-0.6.2.1/docs/doc-index-M.html Map is always namespaced here (look at the right)? I expect other functions to be too. Anyway, you try to focus on the weak points of the arguments. I understand, it's a natural defense mechanism. What I think is more relevant is to notice how in Haskell there is a strong will to group things together. That's what you'd take out of the example. That said, yes, some generic functions will have troube finding a good home. We already addressed this point several time but here it is once more: those function could either be left untouched, or they could be moved to `seq-`, or yet another solution... But I suggest we don't talk about these corner cases for and and focus only on concrete proposals: What we take from s.el and put under the string- namespace, how we alias some of the regexp functions. Philippe --0000000000007b1f2905a4b96edc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

> In Haskell, do you name = every function with a
> prefix that advertises the type of its return
> value or one of its main arguments?

[... replies pointing out that some Haskell
=C2=A0functions do prefix their names with type names...]

I suggest those of you who think that Haskell
too deserves type-name prefixes for all its
function names start an initiative to rename
its `map', `add', `zip', `head', ... functions.


Map i= s always namespaced here (look at the right)? I expect other functions to b= e too.

Anyway, you try to focus on the weak points= of the arguments. I understand, it's a natural defense mechanism. What= I think is more relevant is to notice how in Haskell there is a strong wil= l to group things together. That's what you'd take out of the examp= le.

That said, yes, some generic functions will have troube=C2=A0fin= ding a good home. We already addressed this point several time but here it = is once more: those function could either be left untouched, or they could = be moved to `seq-`, or yet another solution...

But= I suggest we don't talk about these corner cases for and and focus onl= y on concrete proposals: What we take from s.el and put under the string- n= amespace, how we alias some of the regexp functions.

Philippe
--0000000000007b1f2905a4b96edc--