Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

toUnfoldable leaks structure #135

Open
@matthewleon

Description

@matthewleon

toUnfoldable currently leaks structure by doing a breadth-first traversal of the Map.

Potential solutions, subsequent to benchmarking:

  1. If it turns out that toUnfoldable really isn't faster than toAscUnfoldable, then toUnfoldable = toAscUnfoldable should be a simple fix. It would break anything that was depending on the order of toUnfoldable, which is not what people should be doing. Maybe you also deprecate toAscUnfoldable.

  2. Put some sort of constraint on toUnfoldable to ensure that it unfolds to a structure where ordering is not important?

  3. Place a strongly worded, ugly warning comment on toUnfoldable.

Other ideas?

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