On Wed, Aug 9, 2023 at 11:50 PM Daniel Watson <dcwatso...@gmail.com> wrote:

> my-component-1
>
> Is a valid kebab cased string, with tokens my,component,1
>
> However this cannot be formatted in camel case or Pascal case, because they
> are delimited by alpha characters.
>

Not necessarily so. The last implementation I worked on (Python) in
fact did handle this case. This is why it's important to really lock
down the precise definition of these formats before worrying about
which exceptions to throw when. I know from experience that it is
possible to write an algorithm for snake case <--> camel case
conversions that converts any string with no exceptions because I've
done it (not in open source, unfortunately), but that might depend on
the definition of the format.

-- 
Elliotte Rusty Harold
elh...@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to