clojure-emacs / cider

The Clojure Interactive Development Environment that Rocks for Emacs
https://cider.mx
GNU General Public License v3.0
3.55k stars 645 forks source link

Rename private functions in `cider-docstring.el` to have proper prefix #3710

Closed katomuso closed 5 months ago

katomuso commented 5 months ago

Currently, docstring-specific private functions in cider-docstring.el have a global prefix (such as cider--render-pre, cider--string-rstrip-newlines, cider--fragments-to-s, etc.). What do you think about renaming them to have the proper cider-docstring prefix?

bbatsov commented 5 months ago

That doesn't matter much to me. On one hand consistency is good, but on another - long function names impede readability a bit. I keep dreaming of having real namespaces in Elisp.

katomuso commented 5 months ago

I understand your concerns, but I think that it can actually improve readability as it becomes obvious that those functions belong to a particular package and serve a specific purpose. Also, as far as I understand, this is really old code (I can't even find how old using git log) and it will be nice to refactor it a bit along with prefixing names properly.

bbatsov commented 5 months ago

It's not a big deal to me either way, so feel free to change this.

vemv commented 5 months ago

I don't mind a lot about this, however I wouldn't bother with it.

There a lot of better uses of our time - we're not short of bugs, big and small!

We're always happy to receive contributions, but the best ones tend to solve real problems users face.

Those also build a lot of trust for future interactions.