vindarel / cl-str

Modern, simple and consistent Common Lisp string manipulation library.
https://vindarel.github.io/cl-str/
MIT License
305 stars 37 forks source link

Miscellaneous stylistic improvements #83

Closed kilianmh closed 1 year ago

kilianmh commented 1 year ago
vindarel commented 1 year ago

I was seeing an interest in calling the built-in concatenate, mainly to show the use of built-ins to new readers. Then it might be slightly more efficient, and more future-proof against a silly str:concat change. The other changes are good stylistic practice, this one less sure. What do you think?

kilianmh commented 1 year ago

show the use of built-ins to new readers

Does the function definition of str:concat not already show the use of concatenate to new readers of cl-str? ;)

slightly more efficient, and more future-proof against a silly str:concat change

In that case the users should quickly find out about concatenate in the hyperspec. Alternatively we could mention concatenate in a comment / docstring.

kilianmh commented 1 year ago

So then you want me to revert concat to concatenate for now so the other changes can be merged?

vindarel commented 1 year ago

So then you want me to revert concat to concatenate for now so the other changes can be merged?

yes please :)

kilianmh commented 1 year ago

Now it should be as discussed ;)

vindarel commented 1 year ago

Thank you again!