4 ms·
> Sure, I get the benefits of type safety. It seems not ;) It's as if your java-compiler would stop warning you on forgotten semicolons and would instead erro
by maweki 6y ago
> Sure, I get the benefits of type safety.
It seems not ;)
It's as if your java-compiler would stop warning you on forgotten semicolons and would instead error out during runtime when it reaches the statement with the missing semicolon.
It's not your time saved. It's time saved not running the test suite, for example. An uncompilable regex is a category of errors that you can ban completely from your program. Like java bans syntax errors as a category of (runtime) errors. It's time saved as any developer will not break this in a way that is not a semantic error. It's time and mind saved not thinking about a whole class of errors.
- yoz 6y agoThank you for the clarification! To be clear: my post is sarcastic, and I was trying to say that this library looks like a significant usability improvement over traditional regex syntax.
- lgeorget 6y agoFortunately C++ won't suffer from this kind of problems since there, you can make your regex builder a constexpr! (lol)
- deleted 6y ago[deleted]