4 ms·
This is fun and impressive, but it feel the author kind of misses out on explaining in the intro why it would be wrong to just ... use C's regex library [1]? I
by unwind 2y ago
This is fun and impressive, but it feel the author kind of misses out on explaining in the intro why it would be wrong to just ... use C's regex library [1]?
I guess the entire post could be seen as an exercise in wrapping C++ to C with nice memory-handling properties and so on, but it would also be fine to be open and upfront about that, in my opinion.
1: https://www.man7.org/linux/man-pages/man3/regex.3.html https://www.man7.org/linux/man-pages/man3/regex.3.html
- portaltonowhere 2y agoProbably because that’s not part of the C standard library, but a POSIX offering. Author does cross-platform work including Windows.
- unwind 2y agoAh, d'uh. Good point. That's what I get from mostly writing stuff like that in Linux, I guess. Thanks.