Skip to content

Use functions instead of trait methods as the API for src/spline.rs #11

Open
@DJMcNab

Description

@DJMcNab

I don't really think that this module has much advantage for understandability in this form. I'd rather see two functions, which can internally use a shared trait.

Originally posted by @DJMcNab in #2 (comment)

That module currently has a trait which is implemented for two types, including a (slice, slice, t) tuple, and a method which iterates through that type. I'd much rather see this be a function instead, so that the parameter names have meaning.

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