blog.yoshuawuyts.com · 21d · discuss
IntroductionIn a recent lang design meeting Petrochenkov outlined a design for delegation based on a new reuse keyword. I unfortunately had to drop off early because of a work conflict, so unfortunately I couldn’t participate in the discussion. I've been thinking a little more about delegation since. Though I like the idea of delegation and the scope at which it's applied, I feel like the reuse proposal isn't quite where it needs to be yet. Kotlin’s by keyword (“provided by”) also provides delegation, and I think it is closer to what a Rust feature should feel like: For traits you’d...