14 Jan 20:11
Re: some ideas for Haskell', from Python
Alex Queiroz <asandroq <at> gmail.com>
2009-01-14 19:11:57 GMT
2009-01-14 19:11:57 GMT
Hallo,
On Wed, Jan 14, 2009 at 5:06 PM, Max Rabkin <max.rabkin <at> gmail.com> wrote:
> On Wed, Jan 14, 2009 at 10:48 AM, Jonathan Cast
> <jonathanccast <at> fastmail.fm> wrote:
>> Do you have an example of
>> a macro that can't be replaced by higher-order functions and laziness?
>
> I believe I do: one macro I found useful when writing a web app in
> Lisp was something I called hash-bind, which binds variables to the
> values in a hashtable, with the variable names as keys. For example:
>
I have one for binding GET/POST variables to regular variables
transparently and with error checking, just inside the body of the
macro.
--
--
-alex
http://www.ventonegro.org/
RSS Feed