From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Imports / inclusion of s.el into Emacs Date: Sat, 2 May 2020 13:50:59 -0700 (PDT) Message-ID: <99160458-6ac3-48a1-bd28-2d8006ba86f9@default> References: <5f91c6e5-b4af-4478-b221-4ca37f0fb74c@default> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="66217"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Richard Stallman , Emacs developers To: Philippe Vaucher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 22:53:43 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 1jUz8p-000H6q-50 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 22:53:43 +0200 Original-Received: from localhost ([::1]:44360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUz8o-0002W8-7Y for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 16:53:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUz8I-0001v9-5z for emacs-devel@gnu.org; Sat, 02 May 2020 16:53:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUz8H-0001cJ-Cn for emacs-devel@gnu.org; Sat, 02 May 2020 16:53:09 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:53730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUz8D-0001UR-Hy; Sat, 02 May 2020 16:53:05 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042Kr2Uo090894; Sat, 2 May 2020 20:53:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=AgH/prpqC1qxk/GgAnZ1FyDmqGEb6RKloIcEOeDUEI0=; b=XV0H8D/nnqG/EQPc4MZgRr8+Z1Fz+ueFErJAYEbGfzfV52upHjtUdGDJC5OF7h/84B0A RWaYV8WiSpVtP62YhbjW3LELANEeUeo11Cb0sNkj2MJjL2fTYiUWb1K2ZCuTHZaOjcK1 m3+LpYK/wEutTzG5hTtXCFLSdN01uPERBGQj6dDIF8GZCBYk8qGNgygnhLgyipV9N0Xz zeKNqQlKGYEmgWfiIKnDI5oetokanJvJegtBfi7T8HXEGBpUr2gz9w5jULLgrROE28+o v0kIcwmUhJHxUc6wzrWqDc8MSJA4V0VTfsLNmckDxxgPXo6HH+RvsWgj6bICFSfsBbk8 5A== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 30s0tm1scm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 20:53:02 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042KlUS1053008; Sat, 2 May 2020 20:51:01 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 30rwysqdnm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 20:51:01 +0000 Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 042Kp08K009459; Sat, 2 May 2020 20:51:00 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 phishscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020182 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 suspectscore=0 phishscore=0 clxscore=1015 bulkscore=0 mlxlogscore=999 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020183 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/02 12:49:53 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.78 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:248566 Archived-At: [Please use plain-text, not HTML.] >> In Haskell, do you name every function with a >> prefix that advertises the type of its return >> value or one of its main arguments?=C2=A0 No, of course >> not.=C2=A0 How do you find functions that return or use >> a value of a given type?=C2=A0 You check signatures >> or doc. > > Except if I'm missing somethign=C2=A0Haskell also groups related function= s together:=C2=A0https://urldefense.com/v3/__https://hackage.haskell.org/pa= ckage/strings-1.1/docs/Data-Strings.html__;!!GqivPVa7Brio!LCpoSrliut7R6447M= W0bxoZVqjxyDCCan6SeRxySTEZFcwKTa4KnqazRkAcDMCGd$ According to what you've said before, instead of those functions being named `text', `lazyText', `bytes', `lazyBytes', `charToByte', and `byteToChar' they should be named `string-text', `string-lazyText', `string-bytes', `string-lazyBytes', `string-charToByte', and `string-byteToChar'.