[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows G
From: |
Thomas Chust |
Subject: |
Re: [Chicken-users] Generic RDBMS Interface [Was: Re: Creating Windows GUI App] |
Date: |
Sat, 2 Apr 2011 02:17:36 +0200 |
2011/4/1 YC <address@hidden>:
> [...]
> The reason I did not use keyword arguments for query is that in
> racket keyword arguments needs to be quoted to pass through to the
> underlying driver, but chicken might not have that issue.
Hello YC,
this is not really true: While Racket doesn't pass keyword arguments
the same way as positional arguments for reasons of efficiency, it is
still possible to programmatically create procedures that accept
arbitrary sets of keyword arguments and process them somehow. Check
out the documentation of make-keyword-procedure [1] in the Racket
reference if you want to look into this.
CHICKEN however does pass keyword arguments just like positional
arguments.
> The alist approach I chose can feel unwieldy at times for sure if
> written manually, but nice when the alist is already formulated
> elsewhere (which occurs quite a bit in web code) to be passed in.
That's a good point to keep in mind.
> Love to collaborate more if you are interested - it would be nice to
> eventually have a single DBI mechanism for the major scheme
> implementations.
> [...]
Sure, I'll stay in touch and I'll put any prototype code I produce
into a publicly accessible version control repository :-)
Ciao,
Thomas
[1]
http://docs.racket-lang.org/reference/procedures.html#(def._((lib._racket/private/base..rkt)._make-keyword-procedure))
--
When C++ is your hammer, every problem looks like your thumb.