-
Notifications
You must be signed in to change notification settings - Fork 14
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
Parse in boundaries #13
Comments
I was going to suggest narrowing but I see you already thought of that. That would be my recommended solution. What do you dislike about it?
|
Basically the On the other hand I also get that we'd need to also change |
What do you think of doing some benchmarks on this? I can see the need for this behavior, but it'll add a good bit of complexity, so it would be good to know it'll be worth it... Things we could compare to get a base line:
If the second two are really a lot slower than the first one, then it's worth it to change the API. In that case I would prefer making it two options, |
Both things (benchmarking and using |
autogenerated with https://github.com/MalloZup/doghub: issue inactive since 450 days. Please update the issue or close it |
I'm currently in the need of parsing just a fraction of a buffer, so I thought on changing the signature of
parseclj-parse-clojure
to something like:bounds-or-string
can be either a list (or cons) with positions/markers, a string that will be put into a temp buffer and scanned from(point-min)
to(point-max)
, or nil, in which case just scans from(point)
til the end (current default behavior)I wanted to hear your thoughts on it before implementing.
My temporary solution is to use narrowing:
But I think it's not ideal.
The text was updated successfully, but these errors were encountered: