Skip to content

We shouldn't implicitly insert default values? #22

@daniel-vainsencher

Description

@daniel-vainsencher

Matrix::from_iter* etc all fill out the rest of the matrix with zeros if they run out of values early. I have several problems with this:

  • It masks bugs; I would prefer a panic whenever we run out of values early.
  • It requires the Zero trait even when really should be just copying stuff around.
  • Relatively speaking, lots of code is spent on it.

I don't mind opening a PR if we agree on the change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions