IRC channel logs

2024-02-07.log

back to list of logs

<jmes>Hi! In CL I am used to specifying special variables and then shadowing them to change the behaviour of a function. e.g. I might have (defparameter *strategy* 'fast) which a function `find-thing` would read, but in some contexts I change that with (let ((*strategy* 'thorough)) (find-thing)). In Guile, I'm not sure how to do this because `find-thing` will be a closure that reference the original *strategy* and not the shadowed one.
<jmes>Is there an equivalent of special variables or should I change my approach?
<jmes>s/specifying/defining/
<lloda>jmes: https://www.gnu.org/software/guile/manual/html_node/Parameters.html
<jmes>lloda: ah, absolutely perfect, thank you :)
<lloda>yw
<dsmith>sneek, botsnack
<sneek>:)
<dsmith>!uptime
<sneek>I've been faithfully serving for 3 months
<sneek>This system has been up 44 weeks, 4 days, 2 hours