4 ms·
> C++ supports 6 Wow, TIL. I always thought C++ had evolved into an excessively complex language, but this really seems to take the cake. ECMAScript (with C++-
by skissane 5y ago
> C++ supports 6
Wow, TIL. I always thought C++ had evolved into an excessively complex language, but this really seems to take the cake. ECMAScript (with C++-only changes), basic POSIX, extended POSIX, POSIX awk, POSIX grep, and POSIX extended grep. You are right there is no PCRE in there, yet. (There's always C++23... and if not that, C++26 or C++30)
(Although ECMASCript regex was heavily inspired by Perl/PCRE anyway, albeit without being 100% compatible with either, so in a sense PCRE is already there.)
- leni536 5y agoIt's unlikely that std::regex will gain new dialects. Unfortunately it is very broken, it's unlikely that a proposal to extend it would go through.
- MauranKilom 5y agoCan you elaborate (or point me to sources about) how std::regex is broken? I'd like to learn more.
- leni536 5y agoAFAIK it's not even the interface that is broken, but some standard libraries poushed out slow implementations that cannot be changed without an ABI break.