-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Priority: 1Severity 2: MajorStatus 2: ScheduledPlanned for an upcoming release.Planned for an upcoming release.Type: ImprovementImproves the functionality or interface of an existing feature.Improves the functionality or interface of an existing feature.
Milestone
Description
In “Framework Design Patterns”, under 5.1 “General Member Design Guidelines”, the following recommendations should be followed:
- DO make only the longest overload virtual (if extensibility is required). Shorter overloads should simply call through to a longer overload.
- CONSIDER using default parameters on the longest overload of a method.
- DO provide a simple overload, with no default parameters, for any method with two or more defaulted parameters.
This is inconsistent with how OnTopic is written, which typically relies on one method with default parameters, even in interface and virtual methods. To mitigate this, we should implement explicit, non-virtual overloads for methods with default parameters.
For interfaces, these can be implemented as default implementations so that they don’t break existing implementations, nor require support for future implementations.
Metadata
Metadata
Assignees
Labels
Priority: 1Severity 2: MajorStatus 2: ScheduledPlanned for an upcoming release.Planned for an upcoming release.Type: ImprovementImproves the functionality or interface of an existing feature.Improves the functionality or interface of an existing feature.