2 ms·
C# has compile-time regex, which are turned into fairly reasonable code doing the matching you can even inspect. The main goal isn't to have the syntax verified
by ygra 2y ago
C# has compile-time regex, which are turned into fairly reasonable code doing the matching you can even inspect. The main goal isn't to have the syntax verified during compilation (technically it happens even during editing the code), but rather to reduce either dependencies on complex code at runtime, while still maintaining good performance by using the complex regex.
- nsonha 2y agoThis article isn't about compile-time regex (which is in many languages, including javascript) though? It's compile-time regex MATCHING.