From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33309: Add flatten-list? Date: Wed, 7 Nov 2018 12:36:00 -0800 (PST) Message-ID: <058f4a0f-7ce4-49c4-ae54-0bc259bd82d1@default> References: <87r2fw7jsa.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541623222 3242 195.159.176.226 (7 Nov 2018 20:40:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Nov 2018 20:40:22 +0000 (UTC) To: Alex Branham , 33309@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 07 21:40:17 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKUcb-0000iO-FJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Nov 2018 21:40:17 +0100 Original-Received: from localhost ([::1]:51071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKUeh-0004Vs-QT for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Nov 2018 15:42:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKUeP-0004PS-N7 for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2018 15:42:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKUZS-0004rn-1x for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2018 15:37:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35688) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKUZR-0004ra-Te for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2018 15:37:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gKUZR-0003ZO-MW for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2018 15:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Nov 2018 20:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33309-submit@debbugs.gnu.org id=B33309.154162297613671 (code B ref 33309); Wed, 07 Nov 2018 20:37:01 +0000 Original-Received: (at 33309) by debbugs.gnu.org; 7 Nov 2018 20:36:16 +0000 Original-Received: from localhost ([127.0.0.1]:39946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKUYi-0003YR-Fq for submit@debbugs.gnu.org; Wed, 07 Nov 2018 15:36:16 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:43080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKUYg-0003YD-8T for 33309@debbugs.gnu.org; Wed, 07 Nov 2018 15:36:14 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wA7KT4Fu183106; Wed, 7 Nov 2018 20:36:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=IqBcWJ4WVbcDG5cVGky4Mguso14/3aDZLMxRhXriA7A=; b=fgnI8E4xd+dlk/g23Tavi+L78bjBVqy5ojDM2KO+hG7iEIVc02FL2V5yw84bw3I6g6UT 4DY5mQtmtW/nN9luS7XvBRTQiDbMbfFLkbTRRAGf7+HhrosU5iVj8rKId1XmEzZ9Zsv6 pfoukN5xafOmtllxXZi+0DHgDEOj9lJIlbUtmb8cuiRgk440iKxIR0K3j+kSC1bjv1na 6TEmdZYUybP8ryPDvWXlLUl4A4YFiFgYCPZpYqhpf2yPF2NXQgLUKJOBLrQO0L0YnYnB NHWwcsfzrE8kaFsKax98qg4RGJv7qhgLRvF/HnHXoSOlhLQEXkT999XL07OXLxFNwhbU WQ== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2nh4aqwrg6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 07 Nov 2018 20:36:07 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wA7Ka1vU022415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Nov 2018 20:36:01 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wA7Ka0Wa016663; Wed, 7 Nov 2018 20:36:01 GMT In-Reply-To: <87r2fw7jsa.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4756.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9070 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=927 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811070183 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152134 Archived-At: FWIW, I don't think Emacs Lisp needs a flatten=20 function. 1. Even Common Lisp doesn't bother with one. (And there are lots of Common Lisp functions I'd sooner see added to Emacs.) 2. It's trivial to define when needed, and there are not a lot of existing uses of it. 3. The functions you mention do not all behave the same. Even their arg lists are not the=20 same. (But sure, they could all be made to use a common version, if that were important.) 4. (flatten-list 42) =3D> (42) The doc string says nothing about the case where the argument LIST (a bad name here) is not a list. And if the arg need not be a list then "-list" in the function name is not good.