Skip to content

Rename genrows()? #698

Description

@bluss

.genrows() has an unfortunate name. It's supposedly the generalized rows of an array. The reason for the tricky name, was that .rows() was taken - by the row count.

We could rename rowsrow_count and genrowsrows to solve this, ideally with deprecations, so in a two version cycle.

rows() is a more natural name for the ndproducer and iterable for rows, for example because the user doesn't have to care that it's “generalized” rows if they only use 2D arrays — they don't need to know and it doesn't matter.

The main problem with the genrows name is that it is non-intuitive to guess to type and guess what it means.

Note that we chose the .rows() name for the row count to match the sprs crate, but I think we can choose to go our own way here, if we have a good reason.

An alternative to the row_count name is nrows() — anyone have a survey of what other crates prefer apart from sprs?

NOTE: The same story applies to gencolumns.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions