3 ms·
I agree with your list. However, I don't find the first library you referenced readable (i.e. https://github.com/hanickadot/compile-time-regular-expressions/blo
by jeffreygoesto 6y ago
I agree with your list. However, I don't find the first library you referenced readable (i.e. https://github.com/hanickadot/compile-time-regular-expressions/blob/main/include/ctre/starts_with_anchor.hpp https://github.com/hanickadot/compile-time-regular-expressio...), and I am a C++ user since the nineties.
- artagnon 6y agoWhat seems to be the problem with CTRE?
- ncmncm 6y agoThat they are regular expressions.
- jeffreygoesto 6y agoExpressing an algorithm at compile time is so very different from runtime when you do it in template metaprogramming. There is so much visual noise (for my personal feeling at least), writing such code is easier than reading and understanding. Nothing wrong with that special case of regular expressions here, more a general observation. constexpr seems to try and step in, but there still is a large codebase around which is hard to maintain and extend. IMHO D and zig show that it can be better to have compile- and runtime-syntax much closer together.