Closed as not planned
Description
Hello
I know the compile-time regular expressions that were provided by regex-macros are no longer supported. I found them quite an interesting thing.
I was wondering how much work it would be to provide a subset of that functionality. I'm not really worried about runtime allocation or the performance of building the regex at runtime. But being able to validate the regular expression syntax at compile time was a nice thing.
So I was wondering, with proc-macros stabilized, how much work would it be to have just the verification? Basically, the macro would take the string, try to compile it and then spit out the very ordinary Regex::new(string)
code in its place.
Does that idea make some sense?
Metadata
Metadata
Assignees
Labels
No labels