Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Definition-Checked Generics - Part 2 - The Why and How

CppNow via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk explores definition-checked generics and how they compare with C++20 concepts and approaches in Swift and Rust. It examines challenges such as undecidability, non-termination, and coherence, along with proposed approaches in Carbon.

Syllabus

Introduction
Outline
Open Design
Type Equality
Types
Rewrite Rules
Swift
Rust
Carbon
modal constraints
implicit conversion
summary
always terminate
ignore
recursion limit
recursion limits
disallow recursion
use cases
refinement
strictly more complex
Proof
Possible Improvements
Conclusion
Coherence
Trait Coherence
Decoder Ring
retroactive conformance
glue code
subtle bugs
similar disconnect
Swift regret
No retroactive performance
Coherent
ORF
Overlap Rule
Example
Orphan Rules
Root Cause
Rebalancing Coherence
Adapter
Other Questions
Conversion
Specialization

Taught by

CppNow

Reviews

Start your review of Definition-Checked Generics - Part 2 - The Why and How

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.