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

Add .nrows(), .ncols() and old names .rows(), .cols() are now deprecated #701

Merged
merged 3 commits into from
Sep 8, 2019

Conversation

bluss
Copy link
Member

@bluss bluss commented Sep 8, 2019

.rows()/.cols() are renamed to nrows/ncols respectively, to make space
for putting the row iterable/ndproducer in this place instead.

The deprecated methods will be removed in the release after they were
first deprecated.

These new names and the deprecations are the first step towards renaming genrows/gencolumns #698

…ated

.rows()/.cols() are renamed to nrows/ncols respectively, to make space
for putting the row iterable/ndproducer in this place instead.

The deprecated methods will be removed in the release after they were
first deprecated.
@bluss bluss changed the title Add .nrows(), .ncols() and old names .rows(), .cols() are deprecated Add .nrows(), .ncols() and old names .rows(), .cols() are now deprecated Sep 8, 2019
examples/life.rs Outdated
@@ -58,7 +58,7 @@ fn iterate(z: &mut Board, scratch: &mut Board) {
}

fn turn_on_corners(z: &mut Board) {
let n = z.rows();
let n = z.nrows();
let m = z.cols();
Copy link
Member

Choose a reason for hiding this comment

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

This cols call escaped your purge @bluss 👀

Copy link
Member

Choose a reason for hiding this comment

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

I fixed that one and another instance I found.

@bluss
Copy link
Member Author

bluss commented Sep 8, 2019

🌟 teamwork 🥇 Thanks!

@bluss bluss merged commit e56ca71 into master Sep 8, 2019
@bluss bluss deleted the rows-cols branch September 8, 2019 22:17
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.

3 participants