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
A way to indicate that the members of a @class type are applied to a subject @class outside of the inheritance chain
Technical
@mixin type, ...
Adds the values of type, ... to the subject class' definition. Mixins are applied in the order they are specified; values of the same key are overwrote as each mixin is processed
---@classSubject---@fieldkeyboolean (definedbyfield; wasn't altered by mixins)---@fieldfoonumber (definedbyfield,overwrotebymixin1,notoverwritebymixin2)---@fieldbarstring (definedbymixin1,overwritebymixin2)---@fieldbazstring (definedbymixin2)
Use case
I currently have sub-classes that get assigned valves from reusable dictionary tables outside their inheritance chain. The only way to document those modifications is to statically define the fields each time a mixin is applied
The text was updated successfully, but these errors were encountered:
SReject
changed the title
[Feature Request] @mixin - Class-specific syntax to define applied mixins
[Feature Request] @mixin - @class specific syntax to define applied mixins
Apr 20, 2024
What
A way to indicate that the members of a
@class
type are applied to a subject@class
outside of the inheritance chainTechnical
@mixin type, ...
Adds the values of
type, ...
to the subject class' definition. Mixins are applied in the order they are specified; values of the same key are overwrote as each mixin is processedExample
This:
Would get interpreted as
Use case
I currently have sub-classes that get assigned valves from reusable dictionary tables outside their inheritance chain. The only way to document those modifications is to statically define the fields each time a mixin is applied
The text was updated successfully, but these errors were encountered: