Skip to content

Reconsidering using interfaces for props objects in Java and .NET #480

Closed

Description

@fulghum

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.

Activity

  1. added
    language/dotnet
    language/java
    effort/medium
    on Apr 22, 2019
  2. modified the milestones: , on Jul 30, 2019
  3. fulghum commented on Aug 13, 2019

    @fulghum
    Author

    Discussed this one today; Romain is going to investigate if we need support for multiple inheritance.

  4. RomainMuller commented on Aug 20, 2019

    @RomainMuller
    Contributor

    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 🙁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/mediumlanguage/dotnetlanguage/javap0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions