You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
We already have
Eq
andId
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 printedOrd
, for things that have an order)Hash
, for things that can be hashedActor
, for active classes that can e.g. run closuresOne 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!
The text was updated successfully, but these errors were encountered: