-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Generalize to vectors #49
Comments
+1 I would like this. Then we add a local package nickname that makes sense to work on vectors ( |
Honestly, I find the name If you can afford that, I'd suggest renaming the library from (If you decide to rename the package, I'd also suggest to use a longer package name rather than just |
Not to necrobump, but has there been any progress in this matter? |
I've looked into it. I think that most uses of There is also the issue of symbols with "string" in their names, so, What would be the best way to proceed here? |
Regarding splitting generic vectors. Isn't cl-str specifically a string utility? |
Yes, right now it is, hence my original proposal from the first post in this thread. Many of the operations defined here can be generalized to work on arbitrary vectors (or even sequences). |
IMO this doesn't need to be explained. Most people probably can figure that the library provides string utilities, hence the name 'str'. |
Yeah, ok. But should it? I find it good that there is a library only for strings, with a specific purpose. |
Personally, I cannot find a good reason why e.g. |
I would say it raises a type error because the arguments are not strings. |
OK, that works and suggests that a |
I wouldn't care if there are more use-cases beyond string. But it would be good if the current public interface could be maintained and maybe an additional one be added that would work more generic? |
I think it's possible to maintain the current interface and expose a more generic one elsewhere. I'll try doing that in a spare while. |
Or, we would I am dubious of a generalized library (despite my first comment two years ago). We have many general libraries. This one wants to be straightforward, for strings. I know when I am working with strings (and when I know I am working with sequences, I appreciate that Probably something can be done with generic-cl. ps: |
From a quick glance, it seems that almost all (or even all) of the operations here can apply to vectors of any type, not just
(vector character)
which is what strings are defined to be. Therefore,str
could easily become a vector manipulation library, as opposed to just a string manipulation library.The text was updated successfully, but these errors were encountered: