Inline Interfaces junction #9395
Unanswered
BYTESHAUS
asked this question in
Language Ideas
Replies: 2 comments 1 reply
-
see #399 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the fast feedback but my idea is a bit different than type unions which require definition.
…________________________________
From: Nobuyuki Iwanaga ***@***.***>
Sent: Monday, May 19, 2025 1:19 PM
To: dotnet/csharplang ***@***.***>
Cc: Kyrill 🎼D♭ ***@***.***>; Author ***@***.***>
Subject: Re: [dotnet/csharplang] Inline Interfaces junction (Discussion #9395)
see #399<#399>
—
Reply to this email directly, view it on GitHub<#9395 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOTRIHGZ4FFCPXK62GFG4Y327G42ZAVCNFSM6AAAAAB5NKOSZ6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJZGI3DANI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Fine-granulated interfaces and their multi-inheritance into more substantial belong to sound design practices.
However, it may lead to a combinatory explosion. Suppose there are
ISelectable
,ITimestamped
, andINotifyPropertyChanged
, which combinations imply 23 nominal declarations.What if this could be achieved with
[IInterfaceA, IInterfaceB[, IInterfaceC_[, ...]_]>
Syntax sketch:
The enclosing syntax is a proposal and the subject to discuss.
Beta Was this translation helpful? Give feedback.
All reactions