Skip to content

nucleotide-count: Use Entry#or_insert#186

Merged
petertseng merged 1 commit intoexercism:masterfrom
petertseng:nucleotide-count
Aug 24, 2016
Merged

nucleotide-count: Use Entry#or_insert#186
petertseng merged 1 commit intoexercism:masterfrom
petertseng:nucleotide-count

Conversation

@petertseng
Copy link
Copy Markdown
Member

In #155, this operation was performed for other exercises (tournament,
parallel-letter-frequency, word-count), but nucleotide-count was skipped
because #149 indicates that invalid nucleotides maybe should produce
errors.

We don't need to wait for x-common to get a nucleotide-count.json before
deciding to make the current implementation more idiomatic though.

If it's eventually decided that or_insert doesn't make sense, we can
change it then.

In #155, this operation was performed for other exercises (tournament,
parallel-letter-frequency, word-count), but nucleotide-count was skipped
because #149 indicates that invalid nucleotides maybe should produce
errors.

We don't need to wait for x-common to get a nucleotide-count.json before
deciding to make the current implementation more idiomatic though.

If it's eventually decided that `or_insert` doesn't make sense, we can
change it then.
@IanWhitney
Copy link
Copy Markdown
Contributor

ok

@petertseng petertseng merged commit c37ca26 into exercism:master Aug 24, 2016
@petertseng petertseng deleted the nucleotide-count branch August 24, 2016 17:48
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