|
Boost : |
Subject: Re: [boost] [MultiIndex] interface comments
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2008-11-01 11:46:17
David Abrahams <dave <at> boostpro.com> writes:
>
> Just reading through the docs for this very useful library and I had a
> few notes:
>
> 0. The term /typelist/ (italicized) is used in the tutorial without
> definition. Do you mean an MPL type sequence, or something else?
Yep, strictly speaking it is an MPL forward sequence, as stated in
the reference. I wrote "typelist" instead of plain "list" lest
anyone took the latter as somehow related to run-time lists
(std::list etc.) But not explaning the term "typelist" in advance
is even more confusing, as I realize rereading the paragrapah. So
I guess I'll revert to unitalicized "list". Do you think this
would be clearer for an entry-level reader?
> 1. Seems like the tags functionality could take advantage of Boost.Parameter
> to provide a nicer interface and save some code.
I don't see how... Would you care to elaborate?
<shameless plug>For a very extensive and, IMHO, effective use case
of Boost.Parameter have a look at the free-order template parameter
interface of the (soon to be included in Boost) Boost Flyweight
Library (http://tinyurl.com/6xxdkm ).</shameless plug>
>
> 2. The "shortcuts" save exactly 1 character.
[...]
> Notice the column in which "it" appears in both versions. IMO these
> interfaces should be deprecated (i.e. not documented, and eventually
> removed) as they provide no readability advantage, hurt learnability,
> and complicate usage.
Yes, you're absolutely right. I don't recall why I included
the iterator "shortcuts" in the first place, but they probably
confuse more than hurt. I'll do as you propose and begin their
deprecation process in Boost 1.38.
Thank you,
JoaquÃn M López Muñoz
Telefónica, Investigación y Desarrollo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk