News for hackers. Stuff that matters.
Re:Giving C++ std:regex a C makeover by unwind on Thursday September 05, 2024 @06:35AM (#41455315)
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

Re:Giving C++ std:regex a C makeover by portaltonowhere on Thursday September 05, 2024 @06:45AM (#41455359)
Probably because that’s not part of the C standard library, but a POSIX offering. Author does cross-platform work including Windows.
Re:Giving C++ std:regex a C makeover by unwind on Thursday September 05, 2024 @06:56AM (#41455404)
Ah, d'uh. Good point. That's what I get from mostly writing stuff like that in Linux, I guess. Thanks.