-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
Implement static trait methods #3132
Copy link
Copy link
Closed
Labels
A-codegenArea: Code generationArea: Code generationA-grammarArea: The grammar of RustArea: The grammar of RustA-type-systemArea: Type systemArea: Type system
Description
Activity
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationA-grammarArea: The grammar of RustArea: The grammar of RustA-type-systemArea: Type systemArea: Type system
We should support "static" trait methods that don't require an object to be called on. This is how all typeclass functions behave in languages like haskell, and this enables a lot of useful things, mostly when constructing new objects.