Try incoherent traits on stable Rust today with Context-Generic Programming
TL;DR:
In March, three blog posts started a discussion about traits and coherence in Rust.
Longer Read:
Context-Generic Programming (CGP) extends Rust with pluggable trait implementations, chosen per context at compile time, and it runs on stable Rust today. It then desugars several features of Incoherent Rust into CGP code, compares CGP's context type with the dictionaries of dictionary-passing style, and states the limitations of expressing Incoherent Rust this way.
Related Skills:
Software DesignRust
💬 0 comments