From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.user Subject: Re: Srfi-159/166 - monadic formatting for guile Date: Sun, 16 Jun 2019 12:20:55 -0400 Message-ID: References: <87pnnj7pd9.fsf@netris.org> <87wohm2g1k.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="211716"; mail-complaints-to="usenet@blaine.gmane.org" Cc: guile-user To: Mark H Weaver Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jun 16 18:21:26 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcXuH-000sx2-Oh for guile-user@m.gmane.org; Sun, 16 Jun 2019 18:21:25 +0200 Original-Received: from localhost ([::1]:41450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcXuG-0006wG-Rn for guile-user@m.gmane.org; Sun, 16 Jun 2019 12:21:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60900) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcXu3-0006vo-Di for guile-user@gnu.org; Sun, 16 Jun 2019 12:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcXu2-0001hc-7W for guile-user@gnu.org; Sun, 16 Jun 2019 12:21:11 -0400 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:34310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcXu1-0001fo-Mm for guile-user@gnu.org; Sun, 16 Jun 2019 12:21:10 -0400 Original-Received: by mail-wm1-x335.google.com with SMTP id w9so2803799wmd.1 for ; Sun, 16 Jun 2019 09:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rh94fT0JJB9Bmd7dZCDo2sj2pGBt7bhxzkcnzxloK80=; b=L+MOdXxR7WhUnb3qGLRH7gUW0Ki0WLiLCtEeliH1YIKApJh7bPOXaY1wTZfowFLHAh 4nFLdR8vEh7uhVK2hpv0TeSP55CSrRlmIVogSERz7xPigkM7p4cFpvoWGGP/cFwidfhe uYfgUzrufMetT3nOT3AZqIWi05cJ3GtwL8JGfPkAb5vGiXNvtHeZQq+V44SKweRkCTJx Vqn15OFyG1E27nP0PAryPIPp/uMk2DPbDaW8H7YBrSsaKrFq0+0KJ708DWMSyPbWfZjc IkxixxUJ86ykNAwDcw3pqrbjGytHE7t1aUDjs2BPlRGw2Y2HinKVKJ6tVaXUa0qrVckm kOPg== 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=Rh94fT0JJB9Bmd7dZCDo2sj2pGBt7bhxzkcnzxloK80=; b=SZCk5hZW/wqKoPzlB4RgQW2y0S/SDdV5j5nwqvXEE3MrowR5Zc2WsO69AHy+1JxxHY EdcUnjwbuTyzd0Ietv1aw2vtK9l+WZoNUlMNStyXYh2qMeJs1cT/G32xYZsSwyBFbbrV O+iR64DQS06/lAWCPiSAlgKgItT9fEZX1M5M0XEoiL1gx0ogYVjD3bw9LP/1ZFqQk2HB W/BK44grVCorRg7rP3BUxs59/2T/NBMb782CclTwVOqwe+7J73qvTTtMvGt4Mb2AI9WJ BaSfvmRpdIyxeVOJAGwKoSBIkzIs/WJpydD+crFhR6Ua2nF/wFDzwY3Kpglfdl4pZs8a LPqg== X-Gm-Message-State: APjAAAXPR8PBN5Ti4h+OJK+Poj8eMu2bQ2hfol4JYWXKlL+WiFRhcEh6 l3zb44f5uv5V9yqvJtSOtR0NRyIjvIZ9Bb6AshGjacPs96twvw== X-Google-Smtp-Source: APXvYqx+0sN89Lw0gga/SEFNpQqkT38A62HIszBMnJJ6A1CyrCwGyErCM48BEzwMq5mmimGFKYVRqg9lRiNUx37HB3k= X-Received: by 2002:a7b:c215:: with SMTP id x21mr15497449wmi.38.1560702068507; Sun, 16 Jun 2019 09:21:08 -0700 (PDT) In-Reply-To: <87wohm2g1k.fsf@netris.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::335 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15564 Archived-At: On Sun, Jun 16, 2019 at 2:47 AM Mark H Weaver wrote: > How do you implement 'written-shared', 'pretty-shared', and > 'trimmed/lazy'? In particular, how do you avoid non-termination when > asked to print cyclic data, when the cycle includes a non-standard data > type printed using a custom printer? For example, what if you print a > list that includes an object whose custom printer will print output that > includes the same list that you started with? > Of course it can't cope with that. But consider an object whose custom printer outputs its instance variables where one of those instance variables has been assigned to the object itself. No procedure other than the object printer itself is going to be able to break *that* loop. John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org Yes, chili in the eye is bad, but so is your ear. However, I would suggest you wash your hands thoroughly before going to the toilet. --gadicath