Open StefanKarpinski opened 3 years ago
Totally agree, but this is complicated by the use of regexes in several places in Base: path, methodshow, version, binaryplatforms, show, env, irrationals, even libc.
True — the biggest piece of work would be replacing all uses of regexes in Base.
I wonder if something similar could be done here as was done for TOML.
There is a very minimal implementation of a read-only TOML parser located in the Base.TOML submodule.
Then there is a fully-featured TOML reader and writer located in the TOML stdlib.
Would be make sense to do the same thing here?
Put some very minimal regex functionality into a Base.Regex submodule, just enough to handle the use cases that Jeff listed above.
And then put the full Regex library into the Regex stdlib.
The two could use completely different implementations. E.g. maybe the Regex stdlib uses the PCRE library, but the minimal Base.Regex submodule uses something different and more lightweight.
What's the relevance of that link, @apparluk?
That's not really what this issue is about.
Sorry for the noise caused by my mis-operation.
This is a Julia 2.0 issue and definitely cannot be done in Julia 1.x. It would be good to move Regex functionality into a stdlib. This would allow not including PCRE (or whatever regex implementation we're using at that point) in an application image if regexes aren't used at all in the program.