* fluid-let? @ 2010-12-01 12:00 Marek Kubica 2010-12-01 13:41 ` fluid-let? Ludovic Courtès 0 siblings, 1 reply; 3+ messages in thread From: Marek Kubica @ 2010-12-01 12:00 UTC (permalink / raw) To: guile-user Hi, Is there a way to get fluid-let for Guile? Or something like <http://everything2.com/title/Teach+Yourself+Scheme%253A+5.2+fluid-let>? I am having a mutable hash object that I don't want to pass as an argument to every single function that I call, I'd prefer to use a similar solution to what the ports do, by redefining the default input port "semi-globally". I saw this: <http://paste.lisp.org/display/28213> but it does not work with mutating the fluids. regards, Marek ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fluid-let? 2010-12-01 12:00 fluid-let? Marek Kubica @ 2010-12-01 13:41 ` Ludovic Courtès 2010-12-02 4:09 ` fluid-let? Marek Kubica 0 siblings, 1 reply; 3+ messages in thread From: Ludovic Courtès @ 2010-12-01 13:41 UTC (permalink / raw) To: guile-user Hi, Marek Kubica <marek@xivilization.net> writes: > Is there a way to get fluid-let for Guile? Or something like > <http://everything2.com/title/Teach+Yourself+Scheme%253A+5.2+fluid-let>? Guile has fluids and ‘with-fluids’, which is similar to what you want (info "(guile) Fluids and Dynamic States"). It also has SRFI-39 parameter objects (info "(guile) SRFI-39"). Hope this helps, Ludo’. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fluid-let? 2010-12-01 13:41 ` fluid-let? Ludovic Courtès @ 2010-12-02 4:09 ` Marek Kubica 0 siblings, 0 replies; 3+ messages in thread From: Marek Kubica @ 2010-12-02 4:09 UTC (permalink / raw) To: guile-user Hi, On Wed, 01 Dec 2010 14:41:30 +0100 ludo@gnu.org (Ludovic Courtès) wrote: > > Is there a way to get fluid-let for Guile? Or something like > > <http://everything2.com/title/Teach+Yourself+Scheme%253A+5.2+fluid-let>? > > Guile has fluids and ‘with-fluids’, which is similar to what you want > (info "(guile) Fluids and Dynamic States"). It also has SRFI-39 > parameter objects (info "(guile) SRFI-39"). Oh, SRFI-39 looks exactly what I was looking for. Now my code looks way better, more DSLish. Thanks a lot! regards, Marek ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-02 4:09 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-12-01 12:00 fluid-let? Marek Kubica 2010-12-01 13:41 ` fluid-let? Ludovic Courtès 2010-12-02 4:09 ` fluid-let? Marek Kubica
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).