From gwking at metabang.com Sun Jan 13 18:05:39 2008 From: gwking at metabang.com (Gary King) Date: Sun, 13 Jan 2008 13:05:39 -0500 Subject: [Metabang-bind-devel] announce: metabang-bind 0.6.4 Message-ID: As promised [yesterday][], [metabang-bind][bind] has been bumped to version 0.6.4. The new version includes support for regular expressions (if [CL-PPCRE][] is available) and a few other bug fixes, etc. (Thanks go to Attila Lendvai for some of these last. Thanks!). [CL-PPCRE]: http://www.weitz.de/cl-ppcre/ [yesterday]: http://metabang.com/unclogit/?p=234 [bind]: http://common-lisp.net/project/metabang-bind All of the [tests][] pass but documentation is lagging. If you have any questions, give me a holler. [tests]: http://common-lisp.net/project/metabang-bind/test-report.html -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From kilian.sprotte at googlemail.com Thu Jan 17 18:34:04 2008 From: kilian.sprotte at googlemail.com (Kilian Sprotte) Date: Thu, 17 Jan 2008 19:34:04 +0100 Subject: [Metabang-bind-devel] link Message-ID: <1d26dc7e0801171034i72b8d30eg66f8448094491c29@mail.gmail.com> Hi, just a quick note. I think the darcs link on the homepage which reads darcs get http://common-lisp.net/project/metabang-bind/ should be darcs get http://common-lisp.net/project/metabang-bind/ Thanks, Kilian From russ at acceleration.net Fri Jan 25 21:04:47 2008 From: russ at acceleration.net (Russ Tyndall) Date: Fri, 25 Jan 2008 16:04:47 -0500 Subject: [Metabang-bind-devel] binding accessors Message-ID: <479A4EEF.5070605@acceleration.net> Howdy List, When I grabbed this package I was very excited by the idea of a universal binding form. I especially wanted an efficient object binding syntax. I was a little disappointed however, that the bind :accessors didn't make use of the with-accessors macro. This means that my object bindings are not writable. To overcome this I defined a :writable-accessors form that uses with-accessors instead of let* for its binding form. I was wondering if anyone had any comments on why/not this may be desirable. Check it out online at: http://paste.lisp.org/display/54829 I attached a patch containing the code and unit-tests in case anyone was interested. Cheers, -- Russ Tyndall -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: writable-accessors.darcs URL: From gwking at metabang.com Fri Jan 25 23:37:10 2008 From: gwking at metabang.com (Gary King) Date: Fri, 25 Jan 2008 18:37:10 -0500 Subject: [Metabang-bind-devel] binding accessors Message-ID: <79EB7559-293B-4D38-BC3E-9ABCE949E94C@metabang.com> Hi Russ, This looks great. Thanks for the work. I'll pull your patch in over the weekend. -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From attila.lendvai at gmail.com Sat Jan 26 05:28:23 2008 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Sat, 26 Jan 2008 06:28:23 +0100 Subject: [Metabang-bind-devel] binding accessors In-Reply-To: <479A4EEF.5070605@acceleration.net> References: <479A4EEF.5070605@acceleration.net> Message-ID: > To overcome this I defined a :writable-accessors form that uses > with-accessors instead of let* for its binding form. I was wondering if > anyone had any comments on why/not this may be desirable. i'd suggest having :read-only-accessors and :accessors instead, because most of the time you are not worried about performance but setf-ing local variables can be an annoying bug to find. > I attached a patch containing the code and unit-tests in case anyone was > interested. fyi, your attachment came through as pasted text which can't simply be applied when copy-pasted. -- attila From bobbysmith007 at gmail.com Tue Jan 29 21:02:53 2008 From: bobbysmith007 at gmail.com (bobbysmith007 at gmail.com) Date: Tue, 29 Jan 2008 16:02:53 -0500 Subject: [Metabang-bind-devel] Function binding syntax for bind Message-ID: <479F947D.8070202@gmail.com> Howdy list, While working on the same nasty imperative block that led to the accessors change a couple days ago, I had the need to introduce a small function in the midst of binding variables sequentially. I am not sure if it is worth while, but I thought that others might one day have a similar need. I wasn't sure of the appropriate syntax for binding functions, so I took the approach of making a few different (hopefully sensible) options work. The following binding forms are converted to labels forms: (function (test (a b c) (list a b c)) #'(test (a b c) (list a b c)) (:labels (test (a b c) (list a b c)) This binding form is, converted to a flet: (:flet (test (a b c) (list a b c)) Another suggested syntax that was NOT implemented (because it was not as directly implementable) was: (#'test (a b c) (list a b c)) If anyone is interested in this patch: lisp paste: http://paste.lisp.org/display/55016 darcs patch: https://sekhmet.acceleration.net/public/function-binding.darcs Cheers, Russ Tyndall From bobbysmith007 at gmail.com Tue Jan 29 23:00:30 2008 From: bobbysmith007 at gmail.com (bobbysmith007 at gmail.com) Date: Tue, 29 Jan 2008 18:00:30 -0500 Subject: [Metabang-bind-devel] Hashtable binding Message-ID: <479FB00E.80202@gmail.com> Hello again list, I just wanted to put forth a patch to allow binding to hashtable 'slots'. These bound 'variables' are read/writable by its use of the symbol-macrolet form. lisp paste: http://paste.lisp.org/display/55024 darcs patch: https://sekhmet.acceleration.net/public/hashtable-binding.darcs Cheers, Russ Tyndall