-
Notifications
You must be signed in to change notification settings - Fork 55
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
The use of the term "whitespace" can be confusing #144
Comments
Maybe copying those functions to a new name while deprecating the old ones works. |
Yeah, thanks, I think they will get deprecated, I'll wait and see what new fns #70 introduce here. Interesting also that we have |
I agree that this is confusing. Am I correct that checking for |
Yes, I don't think we documented Here's maybe some useful inspiration from cljfmt: https://github.com/weavejester/cljfmt/blob/f3ba8d4d26d3894acdc4875f8b24477c306a3f4b/cljfmt/src/cljfmt/core.cljc#L77-L87 |
Interesting that they consider comment to be a line break. |
For their purposes, it might make sense: a comment always ends with a line break. |
The zip API has fns:
whitespace?
- returns true if Clojure whitespacewhitespace-or-comment?
- returns true if Clojure whitespace or commentAll good. But... the zip API also has:
skip-whitespace
- which skips Clojure whitespace AND comments.skip-whitespace-left
- dittoWhile reading code that uses the above functions from the zip API, I get confused.
Perhaps we can clean things up a bit (without breaking the existing API) when we get to #70.
If we can't do that we'll stress the oddity in docs.
The text was updated successfully, but these errors were encountered: