On Tue, Apr 26, 2011 at 6:19 AM, David Powell <djpow...@djpowell.net> wrote:
> There is justification for resultset-seq's current behaviour, even if it
> isn't to everyone's preference.

Agreed. And I would actually want the lowercasing behavior to remain
the default, for my own use anyway. What irks me more is the lack of
translation between foo_bar and :foo-bar or, for folks who camelCase
column names, between fooBar and :foo-bar perhaps. This all goes back
to the idea of a "naming strategy" for translating between Clojure
keywords and SQL entity names.

I think at this point it makes sense to add a function to c.j.j that
mimics the current resultset-seq functionality but allows for the
application of naming strategies - with the default being the current
behavior, and some other standard strategies available.

The question then is whether the c.j.j function should also be called
resultset-seq or whether a new name should be picked?

However, c.j.j functions yield the _result_ of resultset-seq so
perhaps it doesn't even need to expose the function itself? On the
other hand, if c.j.j supports naming strategies to provide different
keyword/entity translations, users may want to be able to apply the
same translations to any raw resultSet objects they have... Thoughts?

> Can we arrange for the deprecated core version to call the c.j.j version,
> passing any options to preserve current behaviour as much as possible, and
> to fail at runtime if that library is not present?

It's a relatively small function so it should stay as-is in core - it
should not depend on c.j.j. As Stuart notes, deprecation doesn't
necessarily mean it will go away, just that users are discouraged from
using it. One of the other languages I work with deprecated some
functions about a decade ago but those functions are still present
nearly half a dozen releases later :)
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to