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

Naming suggestion #82

Closed
iambatoan opened this issue Sep 4, 2019 · 1 comment
Closed

Naming suggestion #82

iambatoan opened this issue Sep 4, 2019 · 1 comment

Comments

@iambatoan
Copy link

iambatoan commented Sep 4, 2019

Hi thanks for a cool lib!
I just suggest that why don't we call the function like this: view.tiny.center(in: superview) or view.tiny.edgesToSuperView() instead of view.center(in: superview) or view.edgesToSuperView()? So that we dont need to remember the function name.
Thank you

@roberthein
Copy link
Owner

Hi @iambatoan!
I did consider this, but I went with the tiniest version with the least amount of redundancy while maintaining readability. Although adding .tiny would help with code completion, I think it would make it less readable, add redundancy and make it less tiny.

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