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

set the xPad and yPad to zero as default value #24

Open
zixun opened this issue Nov 24, 2015 · 1 comment
Open

set the xPad and yPad to zero as default value #24

zixun opened this issue Nov 24, 2015 · 1 comment

Comments

@zixun
Copy link

zixun commented Nov 24, 2015

I have an idea:
set the xPad and yPad to zero as default value.so that we can have an api that needn't pass the xPad and yPad if xPad is 0 and yPad is 0 .
because almost every API in Neon contains parameters of xPad and yPad,and almost every time I pass zero to them.If the default value is Zero,I will needn't pass zero any more.
My code will be nicer~

@mamaral
Copy link
Owner

mamaral commented Nov 24, 2015

Wouldn't Xcode then autocomplete a bunch of different versions of the same method, making quick implementation a bit annoying?

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