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

Function naming convention #3652

Open
shadybassily opened this issue Jan 22, 2024 · 1 comment
Open

Function naming convention #3652

shadybassily opened this issue Jan 22, 2024 · 1 comment

Comments

@shadybassily
Copy link

in Functions section, exactly inside naming conventions, you recommend to prefix a function with check... if the function returns a true/false, yet in one of the examples, you named a function isPrime that returns true if a num is prime.

@prakhar-pal
Copy link

I don't believe it matters that much as long as function names are meaningful.

This is a convention but conventions can change by project to project.

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