IRC channel logs

2020-12-12.log

back to list of logs

<chrislck>is there an opposite for (use-modules) ?
<chrislck>(unuse-module ...)?
***scs is now known as Guest87482
<apteryx>spk121: the one equivalent to ,compile at the REPL I guess
<apteryx>What's the modern, best practice way to raise an exception in Scheme?
<apteryx>reading the manual, that'd be raise-exception.
<apteryx>What are continuing exception handlers typically used for? Report about an error, then let the exception bubble up? I'm a bit puzzled why this mode is the default. It seems more common that an exception handler should abort the error condition. Am I missing something? :-)
<apteryx>ah, srfi-34 adds more convenient sugar on top of these primitives
<leoprikler>chrislck: there is no unuse-module, that'd be silly. If you need to overwrite an established binding, you can simply define it, otherwise try to limit your imports with #:select or use #:prefix to rename them
<leoprikler>apteryx: not sure what exactly you mean, but I believe the default exception handler terminates the program (or lets you backtrace when in REPL)
***scs is now known as Guest87665
<chrislck>leopriker: it's not silly. I want to test some old code which does (use-module ...) want wish to 'reset' the environment from time to time. it's ok there's no need to write the test.
***apteryx_ is now known as apteryx
***rekado_ is now known as rekado
<rekado>dustyweb: in a new project using webutils I found that delete-session does not reliably delete the session cookie.
<rekado>I haven’t been able to find a minimal example yet, but I’ll keep trying.
<tohoyn>sneek: botsnack
<sneek>:)
<tohoyn>What do you think about https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45131
<dustyweb>rekado: oh, hm
<dustyweb>yeah that should be fixed
<pinoaffe>hi folks, could someone take a look at https://lists.gnu.org/archive/html/bug-guile/2020-09/msg00008.html ?
<RhodiumToad>what about it?
<RhodiumToad>with-output-to-string isn't supposed to affect subprocess output
<mwette>I think peeps want something like Python's subprocess module: https://docs.python.org/3/library/subprocess.html
<mwette>maybe try open-pipe rather than system
<pinoaffe>RhodiumToad: ok, that makes sense, but it's still counterintuitive imo (I've encountered several others that tried (with-output-to-string (system "blarg")))
***scs is now known as Guest44764
***scs is now known as Guest6425