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

Consider making all shape arguments keyword-only? #38

Open
tusharsadhwani opened this issue Feb 8, 2022 · 0 comments
Open

Consider making all shape arguments keyword-only? #38

tusharsadhwani opened this issue Feb 8, 2022 · 0 comments

Comments

@tusharsadhwani
Copy link

tusharsadhwani commented Feb 8, 2022

Essentially for three reasons:

  • circle(x=100, y=100) is easier to explain than circle(100, 100) for first time learners, as it's clearer that x and y values are being assigned
  • Having code like circle(100, 50, 20) can confuse beginners, as they could misremember the order of args
  • circle(50) and circle(r=50) look very similar but result in completely different results
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

1 participant