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

Underscore separators? #19

Closed
malexdev opened this issue Mar 15, 2019 · 2 comments
Closed

Underscore separators? #19

malexdev opened this issue Mar 15, 2019 · 2 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@malexdev
Copy link

malexdev commented Mar 15, 2019

This looks quite cool! Looking forward to seeing more and hopefully helping out at some point.

What is the reason for "going against the grain" and using _ separators instead of camelCase for identifiers?

In #3, you mention that the reason you prefer ' and ` for characters over " is that you don't want to have to press shift. That argument resonates with me.

In keeping with that theme, isn't it more efficient and easier to use camel case over underscores? The camel case method doesn't require you to reach a satellite key, plus is more normal for users in most languages (in my experience at least).

I guess it just seems odd to make so much of the language feel very similar to Go, but then abandon camel casing.

Just a thought. Do with it what you will 😄

@medvednikov
Copy link
Member

I swapped - and _ :)

I wouldn't say it's going against the grain. C/C++, Python, Rust, Ruby, Perl etc use underscores.

@malexdev
Copy link
Author

That’s fair. I think my main thought was:

If we are micro optimizing to the extent that ‘ is preferred over “, then surely camel case is more efficient than snake case.

That was all. And of course not trying to like, argue the point really. It just stuck out to me.

Either way looks great! Can’t wait!

@medvednikov medvednikov added the Bug This tag is applied to issues which reports bugs. label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

2 participants