Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What traits do we provide in the standard library? #797

Open
EliasC opened this issue May 4, 2017 · 3 comments
Open

What traits do we provide in the standard library? #797

EliasC opened this issue May 4, 2017 · 3 comments

Comments

@EliasC
Copy link
Contributor

EliasC commented May 4, 2017

We already have Eq and Id as traits for allowing checking of equivalence and identity respectively. We should think about what other traits we want to provide. We have at least talked about the following traits:

  • Show, for things that can be printed
  • Ord, for things that have an order)
  • Hash, for things that can be hashed
  • Actor, for active classes that can e.g. run closures

One could imagine traits for things that have a size, can be called, are indexable, can be created using a generator etc. This has possible connections to #591.

If you can think of other traits that should be in the standard library, please include them below!

@supercooldave
Copy link

Could Actor be called Runner or something else to avoid confusion with actors (which we call active classes).

@supercooldave
Copy link

Monad.

@supercooldave
Copy link

Hash has been introduced, calls Hashable in Hash.Hashable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants