Skip to content

make encode method to accept array of integers#24

Merged
jd327 merged 1 commit intovinkla:masterfrom
leunggamciu:leunggamciu
Oct 22, 2014
Merged

make encode method to accept array of integers#24
jd327 merged 1 commit intovinkla:masterfrom
leunggamciu:leunggamciu

Conversation

@leunggamciu
Copy link
Copy Markdown
Contributor

hello, ivanakimov
This PR is try to make encode method to accept a group of integers, instead of passing it one by one. I hope it is helpful.

@jd327
Copy link
Copy Markdown
Collaborator

jd327 commented Oct 21, 2014

Hi @leunggamciu, haven't forgotten about your PR, just been traveling. Need some time to review.

jd327 pushed a commit that referenced this pull request Oct 22, 2014
make encode method to accept array of integers
@jd327 jd327 merged commit 7301ead into vinkla:master Oct 22, 2014
@jd327
Copy link
Copy Markdown
Collaborator

jd327 commented Oct 22, 2014

Initially, I've asked senior programmers on best practices - whether to allow accepting several types of input here or not, and the response was usually to stick to one. However, as time goes by I'm starting to see there's many use cases and some ways are easier than others, so in practice it might be better to support both ways. Thanks for the pull request.

@leunggamciu
Copy link
Copy Markdown
Contributor Author

My pleasure!:)

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

Successfully merging this pull request may close these issues.

2 participants