From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandre Garreau Newsgroups: gmane.emacs.devel Subject: Re: New package: resist! Date: Sun, 12 Dec 2021 03:02:44 +0100 Message-ID: <4289582.s7kgry8n0C@galex-713.eu> References: <55DBCF16-5B54-4306-82F9-386A0AEC820F@mit.edu> <877dcay4g7.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18260"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 12 03:04:23 2021 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 1mwEDv-0004b2-1x for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Dec 2021 03:04:23 +0100 Original-Received: from localhost ([::1]:47188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwEDt-0003v0-Fq for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Dec 2021 21:04:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwECT-0003Ce-28 for emacs-devel@gnu.org; Sat, 11 Dec 2021 21:02:53 -0500 Original-Received: from [2a00:5884:8305::1] (port=36452 helo=galex-713.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwECO-0004gr-Mx for emacs-devel@gnu.org; Sat, 11 Dec 2021 21:02:51 -0500 Original-Received: from gal by galex-713.eu with local (Exim 4.94.2) (envelope-from ) id 1mwECL-001pbx-B8 for emacs-devel@gnu.org; Sun, 12 Dec 2021 03:02:45 +0100 In-Reply-To: <877dcay4g7.fsf@web.de> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:5884:8305::1 (failed) Received-SPF: pass client-ip=2a00:5884:8305::1; envelope-from=galex-713@galex-713.eu; helo=galex-713.eu X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:281723 Archived-At: Le diman=C4=89o, 12-a de decembro 2021, 2-a horo kaj 52:56 CET Michael=20 Heerdegen a =C3=A9crit : > Qiantan Hong writes: >=20 >=20 >=20 > > Lists have readable print syntax in almost every Lisps, > > and hash-tables and structs both have readable print syntax > > in Emacs Lisp >=20 > It's onyl that you can't use it if one of the elements does not have > readable print syntax. So you have to traverse the list, and you end up > doing the same as eieio-persistent needs to. But then lists are not the =E2=80=9Celements which do not have readable pri= nt=20 syntax=E2=80=9D, while we asked you example of such elements. Yes, you need to traverse the list, but to print a list you traverse it=20 anyway. The idea of an =E2=80=9Cextensible print=E2=80=9D is that during t= hat recursive=20 traversing that print already does, if it encounters a =E2=80=9Cobject that= it=20 doesn=E2=80=99t know how to print=E2=80=9D, we teach it to use a function t= hat knows how=20 to print it in a such way that it can be read again.