IRC channel logs

2025-07-17.log

back to list of logs

<dsmith>In Guile the *unspecified* that (if #f #f) returns is used by the REPL to *not* print the expressions value
<lloda>imo using (if #f #f) as an idiom is a awful idea
<wingo>to me it is harmless but silly
<bryce_m>I should go to bed. (let ((str "world")) (string-concatenate '("hello " str)))
<bryce_m>In procedure string-append: Wrong type (expecting string): str
<lloda>you have to write `("hello" ,str)
<lloda>else str is a symbol not a variable reference
<bryce_m>lloda: Thanks. Yeah, I'm stumped as to why I'm failing to see the effect of the quote in this case. To bed.
<shawnw>Or (list "hello" str)
<lechner>Hi, some conditions don't change while a program is running. Can 'eval-when' help to more speedily direct calls to code intended for particular machine types?
<dsmith>sneek, later tell lechner Pretty sure eval-when only knows the symbols eval, load, compile, expand
<sneek>Got it.
<dsmith>sneek, later tell lechner See https://www.gnu.org/software/guile/manual/html_node/Eval-When.html#index-eval_002dwhen Best not to experiment if you have a cat
<sneek>Got it.