Skip to content

Consider renaming fromList, toList #50

Closed
@hdgarrood

Description

@hdgarrood

I almost always import Data.List qualified, like this:

import Data.List (List())
import Data.List as List

I think this is the best approach, as it makes the code easier to read (you don't have to remember which functions are in scope), and it means that you don't have to be tweaking your imports all the time (which is annoying and decreases the signal-to-noise ratio of diffs).

However it doesn't work very well with toList and fromList. I think these would be better named fromFoldable and toUnfoldable respectively; I think they convey the meaning better, and also List.toList is a bit redundant. See also purescript-deprecated/purescript-maps#42.

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