Skip to content

slices.Delete #10

@Deleplace

Description

@Deleplace

Hello, while researching for this Go proposal I noticed this code:

slices.Delete(dependency.Dependents, dependentIndex, dependentIndex + 1)

which probably doesn't behave as intended because the returned value of slices.Delete is ignored.

Deleting elements inside the range dependency.Dependents loop is tricky to reason about, so I would suggest using slices.DeleteFunc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions