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

Terminology #1

Closed
mathiasbynens opened this issue Aug 30, 2014 · 4 comments
Closed

Terminology #1

mathiasbynens opened this issue Aug 30, 2014 · 4 comments

Comments

@mathiasbynens
Copy link

Hey, glad to see you packaged this into a module!

Just a small suggestion: the terminology “valid literal” and “valid string literal” is a bit off. E.g.

Check if input is a valid javascript string literal or needs quoting

A string literal is by quoted already, by definition.

Instead, this code checks for valid identifier names or numeric literals as only those can be used as property names in object literals.

[…] quotes can only be omitted if the property name is a numeric literal or a valid identifier name […]

You may want to correct things like this in the README:

Check if input is a valid javascript string literal or needs quoting

And arguably the repository name could be changed as well.

@pgilad
Copy link
Owner

pgilad commented Aug 30, 2014

Hey thanks for the feedback! I really appreciate it..

Yeah this could definitely use terminology changes. I'll get on it

@pgilad pgilad closed this as completed in 43c273d Aug 30, 2014
@pgilad
Copy link
Owner

pgilad commented Aug 30, 2014

👍

@mathiasbynens
Copy link
Author

👍

Don’t forget to update the repo description:

@pgilad
Copy link
Owner

pgilad commented Aug 30, 2014

Done.. Thanks for the tips, and the awesome research & code... 😄

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