IRC channel logs

2025-01-28.log

back to list of logs

<dsmith>graywolf, Yes I agree separating #f and '() is a good idea. But you need something like this to get the intended result:
<dsmith>scheme@(guile-user)> (format #f "~@[[~a]~]" (let ((l '())) (if (null? l) #f l)))
<dsmith>$4 = ""
<dsmith>Ewww
<graywolf>dsmith: I endend up with something similar to (format #f "~:[[~a]~;~*~]" (null? l) l), which, assuming l already exists, seems readable enough?
<graywolf>But yeah, I did not figure out anything nice with ~@[
<graywolf>Is there a common, agreed upon format for the file header? It seems to be `;;; Commentary:' and `;;; Code:' and I am not sure how to format lines in between. I checked Guile's source and it is... mixed.
<lloda>it's rather silly that (log 0) throws when the result is always inexact
<lloda>but chez & racket do the same
<dsmith>lloda, Probably an attempt to follow emacs conventions? https://www.gnu.org/software/emacs/manual/html_node/elisp/Library-Headers.html
<dsmith>lloda, Sorry was for graywolf
<dsmith>And is gone at the moment
<dsmith>sneek, later tell graywolf Yeah, that does look better (using ~:[ )
<sneek>Okay.
<dsmith>sneek later tell graywolf The comments are probably an attempt to follow emacs conventions? https://www.gnu.org/software/emacs/manual/html_node/elisp/Library-Headers.html
<sneek>Okay.
<dsmith>sneek, botsnack
<sneek>:)
<dsmith>There's a good little bot!
<sneek>ACTION wags
<dsmith>!uptime
<sneek>I've been aware for 9 days
<sneek>This system has been up 1 week, 2 days, 23 hours, 5 minutes
<lshoravi>Hi all. (ice-9 match) doesn't say anything about matching keywords, but I seem to be able to match against literal keywords just fine.
<lshoravi>documentation issue, or bug?