You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reconsidering using interfaces for props objects in Java and .NET #480
Java/.NET UX research showed that users sometimes tripped over the property object interfaces when learning the API. IDE suggestions to implement the interface type often left UX participants confused and stuck.
The interfaces make sense in TypeScript, but don't seem to add as much value in Java or .NET.
There is at least one case in the CDK that leverages multiple struct inheritance, and that is on a stable API, meaning we cannot break this before we hit CDK 2.0. So at least for now, we have to keep retaining interfaces so we can support all kinds of polymorphisms that the TypeScript language idiom allows for 🙁
Activity
fulghum commentedon Aug 13, 2019
Discussed this one today; Romain is going to investigate if we need support for multiple inheritance.
RomainMuller commentedon Aug 20, 2019
There is at least one case in the CDK that leverages multiple struct inheritance, and that is on a
stableAPI, meaning we cannot break this before we hit CDK 2.0. So at least for now, we have to keep retaining interfaces so we can support all kinds of polymorphisms that the TypeScript language idiom allows for 🙁