IRC channel logs

2025-02-03.log

back to list of logs

<Kolev>I'm having trouble building my Haunt site. https://paste.debian.net/1348077/
<graywolf>Hi! I am looking into hash-for-each, and the manual says "Results will be unpredictable if table is modified while iterating.". Does this also hold true for modifying existing keys in the map? Basically I want to do (hash-for-each (lambda (k v) (hash-set! h k (reverse v))) h), and am not sure if I can.
<sneek>graywolf, you have 1 message!
<sneek>graywolf, daviid says: guile-lib bugs should be reported to guile-devel, not using the guile's bug tracker - there is no bug tracker for guile-lib
<rlb>graywolf: Hmm, no idea, and of course if we don't promise that, it could break later... I also see we don't have anything like hash-keys, though I suppose you could do things in two passes, i.e. one hash-fold to get the keys, and then a traversal of the keys to set your reversed values. Not ideal, but safe.
<graywolf>Yeah I was just curious whether someone would know :) Seems like a somewhat sensible thing to want to do, but yeah, will do it in two passes.
<rlb>Agreed - we might want to promise that behavior, but depending on what you're up to, I'd probably want to see that made official somewhere first...