Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regex to standard library #3

Open
calebzulawski opened this issue Dec 20, 2022 · 1 comment
Open

Add regex to standard library #3

calebzulawski opened this issue Dec 20, 2022 · 1 comment

Comments

@calebzulawski
Copy link
Collaborator

I think an implementation could look something like:

regex = std:String:regex "lib(?P<name>).so.[0-9]+"

match $library [
    $regex :captures -> std:log:info "matched ^(captures:name)"
    _ -> ...
]
@afranchuk
Copy link
Collaborator

I was hesitant to include regex due to size. But it'll be smaller than, say, the network stack, and that's already included in the standard library (mainly as a means to bootstrap more functionality over the network). It probably won't be that big an addition when all's said and done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants