Skip to content
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

Why is it referred to as ToCamel instead of ToPascal? #53

Open
Imran-imtiaz48 opened this issue Dec 15, 2024 · 1 comment
Open

Why is it referred to as ToCamel instead of ToPascal? #53

Imran-imtiaz48 opened this issue Dec 15, 2024 · 1 comment

Comments

@Imran-imtiaz48
Copy link

I found the naming of the ToCamel function a bit confusing when I first reviewed the code in camel_test.go. Initially, I thought it might be a typo in the source code. However, as I continued, I came across the ToLowerCamel function, which clarified that the naming was intentional.
I’m raising this issue because:

  1. If this library is used in a project, other developers might get confused when they encounter the ToCamel function. This confusion could lead to misunderstandings, especially during code reviews.
  2. Most developers associate the naming convention with PascalCase, making the current name inconsistent with common expectations.
  3. Naming the function ToCamel may reduce code readability, as its purpose isn’t immediately clear without a deeper dive into the library, particularly the ToLowerCamel method.
    This is a fantastic library, but I believe addressing this naming issue would make it even better. Could this be reconsidered and updated?
@ccoVeille
Copy link

ccoVeille commented Dec 15, 2024

Everyone agree.

Unfortunately, it was reported multiple times, but never addressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants