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

all-your-base: Add exercise, and deprecate binary #155

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

ee7
Copy link
Member

@ee7 ee7 commented Feb 18, 2019

Reference:
exercism/problem-specifications/exercises/all-your-base

Implementation details:
Similar to other tracks (e.g. Haskell and Rust), the function's arguments are ordered differently than in the canonical data. The new order is more idiomatic Nim, and it allows clean use of Nim's method call syntax: [1, 0, 1].convert(2, 10).

I don't have strong opinions about using array rather than seq for the input digits, but this could be an opportunity for Nim students to practise using openArray.

Deprecation:
The all-your-base exercise replaces the binary exercise, which will be officially deprecated soon.

@amscotti amscotti merged commit 4a6e8b9 into exercism:master Feb 19, 2019
@ee7 ee7 deleted the all-your-base branch February 19, 2019 11:00
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