Centril / rfc-trait-parametric-polymorphism

Planning, scheming and designing of {-# LANGAUGE ConstraintKinds #-} for Rust
11 stars 0 forks source link

Random notes #2

Open Centril opened 6 years ago

Centril commented 6 years ago

@nikomatsakis on gitter WG-traits [stuff to include in prior art]:

lambda prolog also supports said concepts, in some scenarios you can have things of kind type -> o where o means "predicate" (like T: Trait) it interacts with unification and inference but as long as we set it up such that you don't have to infer such a variable, it's basically ok (which a setup roughly like assoc types would do)

goto40 commented 11 months ago

Is there any security issue or some other issue which hinders associated traits? For me, this feature is obviously missing in the language.