|
Boost : |
Subject: Re: [boost] Request for Interest in several Modules
From: Artyom Beilis (artyomtnk_at_[hidden])
Date: 2012-01-10 11:44:21
>
> For the DB connectivity I wondered, why your result
> objects don't provide the input iterator interface,
> but next() and fetch() instead. I guess, there is a
> good reason, but I'd like to know it.
>
There are several reasons.
When *result_iterator would return? Who owns it? If I change
it what it does.
Basically I had seem several SQL libraries with iterator interface
and it felt unnatural and abused, on the other hand in some
other libraries (like for example JDBC, I know... I know Java/Ugly)
it was much more intuitive.
Finally cppdb::result is much more complex then JUST iterator.
In this case next more clear operation with more clear semantics
without any "temporary object" and various copy semantics etc.
Now fetch has even bigger differences, it is not iterator and it
has multiple parameters (under the hood it is fetch(int col,Type &))
So between the choice of creating unnatural API with side effects
or clear but less "modern-C++-style-API" I had chosen the second.
>
> I already had a look into your cppcms a while ago, which I mostly liked.
> Sadly I did not really get around to try and write an application with it.
> The biggest drawback for me is the use of "booster" instead of boost.
> I know that there might me situations where a stable ABI is important,
> but for me it is not. So I'd prefer to simply use boost there.
> Do you think, there might be a compile time option to chose either?
First of all Booster is very far from Boost. It has **some** boost like
classes and many others with different semantics. So it is not
"copy-paste" replaceable especially parts like Booster.AIO that
shared general ideas with ASIO but solves some very critical
problems that exist in ASIO from my point of view.
Finally you don't use almost any of them most of the with some very special
exceptions... And nothing prevents from you to use Boost whatever
version and type you like.
>
>Christof
>
>-- okunah gmbh Software nach Maß
>
>Werner-Haas-Str. 8 www.okunah.de
>86153 Augsburg cd_at_[hidden]
>
> Registergericht Augsburg
>Geschäftsführer Augsburg HRB 21896
>Christof Donat UStID: DE 248 815 055
>
>_______________________________________________
>Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk