Skip to content

Conversation

@vegai
Copy link

@vegai vegai commented Mar 31, 2017

Expendable proof of concept for removing exclusive ranges (...) from the language.

Discussed in #4214

Copy link
Contributor

@bew bew left a comment

Choose a reason for hiding this comment

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

Still some ... Missing, mostly in tests description


a = [1, 2, 3, 4, 5]
a[1...1] = 6
a[1..0] = 6
Copy link
Contributor

@bew bew Apr 1, 2017

Choose a reason for hiding this comment

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

Are you sure about the 1..0 here?

(1..0).reverse_each.to_a.empty?.should be_true
end

it "is empty with ... and begin > end" do
Copy link
Contributor

Choose a reason for hiding this comment

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

You should simply remove the test

(1..0).reverse_each.to_a.empty?.should be_true
end

it "is empty with ... and begin > end" do
Copy link
Contributor

Choose a reason for hiding this comment

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

change the test name

(1..0).reverse_each.to_a.empty?.should be_true
end

it "is empty with ... and begin > end" do
Copy link
Contributor

Choose a reason for hiding this comment

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

... In test name

(1..0).reverse_each.to_a.empty?.should be_true
end

it "is empty with ... and begin > end" do
Copy link
Contributor

Choose a reason for hiding this comment

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

... In test name

(1..0).reverse_each.to_a.empty?.should be_true
end

it "is empty with ... and begin > end" do
Copy link
Contributor

Choose a reason for hiding this comment

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

... In test name

(1..0).reverse_each.to_a.empty?.should be_true
end

it "is empty with ... and begin > end" do
Copy link
Contributor

Choose a reason for hiding this comment

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

... In test name

(1..0).step(1).to_a.empty?.should be_true
end

it "is empty with ... and begin > end" do
Copy link
Contributor

Choose a reason for hiding this comment

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

... In test name

@vegai
Copy link
Author

vegai commented Apr 25, 2017

Closing to stop spamming the PR queue with this WIP.

@vegai vegai closed this Apr 25, 2017
@vegai vegai deleted the remove_exclusive_range_syntax branch April 25, 2017 07: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