clj-commons / camel-snake-kebab

A Clojure[Script] library for word case conversions
https://clj-commons.org/camel-snake-kebab/
Eclipse Public License 1.0
475 stars 49 forks source link

Numbers #40

Open ilyabe opened 7 years ago

ilyabe commented 7 years ago
(camel-snake-kebab.core/->PascalCase 1)
;; => java.lang.IllegalArgumentException: No implementation of method: :alter-name of protocol: #'camel-snake-kebab.internals.alter-name/AlterName found for class: java.lang.Long

What do you think of an implementation that will return the original number instead of an exception?

qerub commented 7 years ago

I'm skeptical. Numbers don't have a name and thereby no case so I'd say there are correctly outside of the function's domain. When and how have you run into an occasion where your suggestion would have been useful?

jngbng commented 2 years ago

I'm skeptical. Numbers don't have a name and thereby no case so I'd say there are correctly outside of the function's domain. When and how have you run into an occasion where your suggestion would have been useful?

62 is the case where it would be useful.