IRC channel logs

2019-12-19.log

back to list of logs

***catonano_ is now known as catonano
***dftxbs3e_ is now known as dftxbs3e
<faLUCE>hello. myString is "<script> foobar </script>". How can I replace "<script>" with "token1" and "</script>" with "token2" ?
<zig>is this supposed to remain in the code: module/statprof.scm
<zig>271: (pk 'what! (make-stack #t)))))
<zig>883: (pk 'what! (make-stack #t)))))
<chrislck>faLUCE: https://lists.gnu.org/archive/html/guile-devel/2013-09/msg00029.html
<faLUCE>thanks chrislck
<faLUCE>could not imagine that it had to be implemented
<chrislck>faLUCE: here's a followup. https://lists.gnu.org/archive/html/guile-devel/2014-03/msg00058.html this fn is not defined in srfi-13 or srfi-152.
<lloda>well I for one think that should be in Guile
<lloda>I'd create (ice-9 strings) and merge -13 and all the core functions in there
<lloda>I don't know if there are incompatible ones tho
<chrislck>o/ agree
<chrislck>the question is who will be in charge of creating it?
<lloda>it seems -13 is in core always, so there's no need to merge
<lloda>I've read that there is a concern of bloating the core
<lloda>but if there is broad agreement that such or such function belongs in Guile itself and not some library, then I'd just add it
<lloda>the patch would be trivial, but maintainers have to agree, or allow someone else to make the decision.
<lloda>once I did create (ice-9 arrays) that has a couple functions only, just to avoid putting them in core
<lloda>it is p. weird that you need to import (rnrs bytevectors) to get bytevector-length, but something like string-normalize-nfkc is just there
<chrislck>(ice-9 string-fun) could have an additional function
<nly>hi
<nly>sneek help
<nly>sneek later tell janneke web manuals made it into the cvs web repo
<sneek>Will do.
<janneke>what could mpi be, /me wonders...
<sneek>janneke, you have 1 message.
<sneek>janneke, nly says: web manuals made it into the cvs web repo
<janneke>ah, wrong channel still good!
<janneke>nly: that's great, thanks!
***ng0_ is now known as ng0
<manumanumanu>Ahoy hoy!
<jcowan>manumanumanu: Ho de do de do!
<janneke>sneek: botsnack
<sneek>:)
<faLUCE>hello. myVar contains the content of a text file, which I have to copy inside a html document. Then, according to HTML standard, I have to replace special characters like <, >, / etc. What's the easiest way to do that, in scheme(guile)?
<faLUCE>do I have to implement myself the function or is there anything for doing that?