From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Alexandrov Newsgroups: gmane.lisp.guile.devel Subject: Re: (. wtf?) Date: Sun, 07 May 2023 21:06:21 +0300 Message-ID: <5y949ftu.dag@gnui.org> References: <110317045333325207.civodul@toot.aquilenet.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12083"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: guile-devel@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun May 07 21:35:45 2023 Return-path: Envelope-to: guile-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 1pvkAb-0002xV-LU for guile-devel@m.gmane-mx.org; Sun, 07 May 2023 21:35:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvkAJ-0007BI-Cz; Sun, 07 May 2023 15:35:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvimF-0008Cq-1U for guile-devel@gnu.org; Sun, 07 May 2023 14:06:31 -0400 Original-Received: from msg-1.mailo.com ([213.182.54.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvimC-0005hd-7e; Sun, 07 May 2023 14:06:29 -0400 Original-Received: by b221-1.in.mailobj.net [192.168.90.21] with ESMTP via ip-20.mailobj.net [213.182.54.20] Sun, 7 May 2023 20:06:25 +0200 (CEST) X-EA-Auth: 2EGzySBN5EguxAAkI6K8maheJC9sQ8EI96it/jp2oVK5KSzBc9gyobCsiGz+cMpXdfiyRAAKas/2pKB/WmQS739D5Ei+FEyO In-Reply-To: <110317045333325207.civodul@toot.aquilenet.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Fri, 05 May 2023 16:35:24 +0000") Received-SPF: pass client-ip=213.182.54.11; envelope-from=dag@gnui.org; helo=msg-1.mailo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 07 May 2023 15:35:25 -0400 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21817 Archived-At: On Fri, 05 May 2023 16:35 Ludovic Courtès wrote: > (call-with-input-string "(. wtf?)" read) > > ⇒ wtf? > > #Guile #Scheme Hey!^W Sorry... Dear Guile developer, your tweet made me deeply concerned. Is it a sign that this behaviour is going to be ‘fixed’ eventually? Besides actually being (imho) the only right thing to do: explanation below aside, just compare: #+begin_src scheme (define (fu bar) ...) (λ (bar) ...) (define (fu . quux) ...) (λ (. quux) ...) #+end_src it is required for compatibility with elisp; where itʼs not only observed de-facto: #+begin_src elisp '(. foo) ;; ⇒ foo #+end_src but explicitly documented in (info "(elisp) Dotted Pair Notation") as well: #+begin_quote As a somewhat peculiar side effect of ‘(a b . c)’ and ‘(a . (b . c))’ being equivalent, for consistency this means that if you replace ‘b’ here with the empty sequence, then it follows that ‘(a . c)’ and ‘(a . ( . c))’ are equivalent, too. This also means that ‘( . c)’ is equivalent to ‘c’, but this is seldom used. #+end_quote