Description
.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 rows
→row_count
and genrows
→ rows
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
.