On Tue, Mar 15, 2016 at 7:37 PM, Gavin Lambert
On 16/03/2016 06:02, Rodrigo Madera wrote:
However, on the technical side, I'm more on the idea that everything that
can be done at compile time, should be done at compile time. Handlers, even routes, should be handled in compile time. [1]. This is C++, after all.
While compile time should be the preferred option, it still must be possible to modify routes (and other things) at runtime as well (even if that requires adding a "dynamic_route" rule at compile time or similar).
I agree that runtime configuration is a primary concern. However, I beg to differ on privileging compile times over (possibly) more efficient code. If possible, make this a define so the user can choose at will.
To clarify, by "compile time" I meant "code evaluated during compile" or "static routing", not "the duration of compilation". ie. constexpr/template-based routing, which is what seemed to be under discussion.
Indeed, I misread your words. Sorry for the confusion. Anyway, we agree on that. Madera