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

bracket-push: Add new exercise; README/test-exercise: no hyphens in module names #13

Merged
merged 4 commits into from
Jan 15, 2017

Conversation

petertseng
Copy link
Member

No description provided.

Ceylon doesn't tend to like these:

```
$ ceylon compile bracket-push
ceylon compile: Invalid module name or source file: bracket-push
Module names should not contain any version part.
```

Despite the fact that I didn't give a version part, I think the dash
causes it to be interpreted that way. It works if I make it bracketpush,
so I'll just do that.

I looked at https://herd.ceylon-lang.org and while some modules there
have dashes in the name, they are all the "Legacy Jar" format, so I
imagine this is not replicable.
As discovered (see README change removing dash from module name), module
names with dashes don't seem to be accepted.
if (opens.contains(c)) {
expectedOpens.push(c);
} else if (exists open = openFor[c]) {
if (exists last = expectedOpens.pop(), last == open) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty if makes me uncomfortable.

Copy link
Member Author

@petertseng petertseng Jan 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, using expectedOpens.pop() else '!'

@@ -0,0 +1,4 @@
module bracketpush "1.0" {
import "ceylon.collection" "1.3.1";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to example dir?

@petertseng petertseng merged commit eb0b639 into exercism:master Jan 15, 2017
@petertseng petertseng deleted the bracket-push branch January 15, 2017 09:25
petertseng added a commit to petertseng/exercism-ceylon that referenced this pull request Jan 15, 2017
Student's only has ceylon.test, example's has whatever it needs.

This pattern has already been used in sieve (exercism#16) and bracket-push (exercism#13)
anyway, so it needs to be documented.
petertseng added a commit that referenced this pull request Jan 15, 2017
#17)

Student's only has ceylon.test, example's has whatever it needs.

This pattern has already been used in sieve (#16) and bracket-push (#13)
anyway, so it needs to be documented.
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.

1 participant