Skip to content

forth: return Vec<Value>, not String, from stack#294

Merged
petertseng merged 1 commit intoexercism:masterfrom
petertseng:forth
Jun 7, 2017
Merged

forth: return Vec<Value>, not String, from stack#294
petertseng merged 1 commit intoexercism:masterfrom
petertseng:forth

Conversation

@petertseng
Copy link
Copy Markdown
Member

Questioning the assumptions: Why must the output be a string?

Reasons I thought of:

  • It was this way in the original version of the exercise:
    Add Elixir forth exercise exercism#1188
    • But, we have no obligation to follow that.
  • It matches the fact that we have strings as inputs.
    • But, it is probably more work for the student to create a string.
    • It can be argued that it's easier to check the vector.

Previous discussions:
exercism/problem-specifications#394 (comment)
exercism/haskell#412

This doesn't get this track all the way to forth 1.0.0, but is a useful
step there.

@petertseng
Copy link
Copy Markdown
Member Author

petertseng commented May 30, 2017

will need rebase for #296, will do that later now.

I did that badly. Better now.

Questioning the assumptions: Why must the output be a string?

Reasons I thought of:

* It was this way in the original version of the exercise:
  exercism/exercism#1188
    * But, we have no obligation to follow that.
* It matches the fact that we have strings as inputs.
    * But, it is probably more work for the student to create a string.
    * It can be argued that it's easier to check the vector.

Previous discussions:
exercism/problem-specifications#394 (comment)
exercism/haskell#412

This doesn't get this track all the way to forth 1.0.0, but is a useful
step there.
@petertseng petertseng merged commit 23f2dde into exercism:master Jun 7, 2017
@petertseng petertseng deleted the forth branch June 7, 2017 03:16
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