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

Design guidelines for new library features #42

Open
k15a opened this issue Dec 20, 2018 · 1 comment
Open

Design guidelines for new library features #42

k15a opened this issue Dec 20, 2018 · 1 comment

Comments

@k15a
Copy link

k15a commented Dec 20, 2018

Identifiers should have clear names and don't use abbreviations as this makes them a lot more clear and easy to read. For example, having a function called lessThan is easier to understand than lt. The same applies for length over len

As most of the current identifiers are no abbreviations as well it would make the library much more consistent with the rest of the language.

@littledan
Copy link
Member

There is a broader point here: should we develop a design guide for the standard library proposals? The Web has https://w3ctag.github.io/design-principles/. TC39 has thought about making a "rationale" repo; maybe this should go there.

@littledan littledan changed the title Prefer readability Design guidelines for new library features Dec 20, 2018
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