Skip to content

Papercut: mismatch between name and signature #163

Closed
@daniel-vainsencher

Description

@daniel-vainsencher

The name of from_slice_dim_stride(dim: D, strides: D, xs: &'a mut [A]) suggests a parameter ordering inconsistent with what it actually expects.

Same goes for pub fn from_vec_dim(dim: D, v: Vec<A>) and related constructors.

I suggest to change the API now despite the breakage, rather than wait to get more users. I don't have good ideas on which ordering to choose.

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