how to build up the library..
Nick Sabalausky
a at a.a
Thu Oct 6 18:55:53 PDT 2011
"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message
news:j6ljvs$1if5$1 at digitalmars.com...
>
> For D in particular, I think the range aspect is secondary. Probably it
> will be more important to interoperate with Variant. Most APIs store
> columns in a Variant structure that captures all possible types of the
> database.
>
> Resultsets come as input ranges of array of Variant. It's not important to
> make them compatible with the input range interface because it's unlikely
> you'll pass that array of Variant directly to some algorithm. That being
> said, people will naturally expect to use the canonical range interface.
> It would probably be gratuitous to choose other primitive(s) than
> empty/front/popFront.
>
Personally, I would *expect* a good DB API to provide statically-typed
columns. I use D because I hate dynamic typing, not because it provides a
Variant. Whether or not the DB API *also* has messy^H^H^H^H^HVariant
capability for those who want it, I wouldn't care at all either way.
More information about the Digitalmars-d
mailing list