Skip to content

Get rid of the std::util module #7556

Closed
@bstrie

Description

@bstrie

Having a util namespace is an anti-pattern. Go through all the remaining types and functions in std::util and either move them to std::prelude or delete them outright.

15:28 < bstrie> though I'm sad that Noncopyable lives in a module named "util"
15:28 < bstrie> maybe we can find a better home for it
15:28 < strcat> prelude
15:28 < strcat> just shove it in prelude
15:28 < strcat> and swap/replace too
15:28 < bstrie> is that all that's left?
15:28 < strcat> no but the other stuff is pretty useless
15:28 < bstrie> haha
15:28 < strcat> id and ignore
15:28 < strcat> |x| x
15:29 < strcat> and .drop() being allowed explicitly could zap ignore
15:29 < strcat> or let _ = x; dropping immediately
15:29 < strcat> also Void, but we can put that in prelude

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions