|
Boost : |
Subject: Re: [boost] [review][mp11] Formal review of Mp11
From: Louis Dionne (ldionne.2_at_[hidden])
Date: 2017-07-24 02:57:05
> A casual inspection of the source files should be enough to give any
> potential user confidence in the quality of the library (assuming they
> are somewhat familiar with the domain). The implementation is in sharp
> contrast to the "template soup" I usually encounter when looking at
> Boost source code. For example, here's Hana:
>
> <https://github.com/boostorg/hana/blob/e507494b5f7f51026e8afa317b3ca2c058a4d290/include/boost/hana/any_of.hpp#L58>
>
> and here's mp11
>
> <https://github.com/pdimov/mp11/blob/8e1d23b11f25c3864593b6fc5a8449306e17ea23/include/boost/mp11/algorithm.hpp#L861>
That's because they do significantly different things and pose significantly
different constraints on input the types. Hana's any_of is short-circuiting,
works on compile-time infinite sequences, and works on runtime values as
well as compile-time values. mp11 has none of that (because that's out of
scope for the library, except for short-circuiting which I was surprised
it did not provide).
Louis
-- View this message in context: http://boost.2283326.n4.nabble.com/review-mp11-Formal-review-of-Mp11-tp4696839p4697319.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk