Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide instance level access to descriptor information #48

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

Mordil
Copy link
Collaborator

@Mordil Mordil commented Jan 7, 2025

Motivation:

Sometimes developers are working in type-erased contexts where they can't directly refer to the name of the type of the CurrencyValue and need access to the descriptor.

In this cases, having an instance member property to provide the value is straight forward and convenient.

Modifications:

  • Add: descriptor instance property to CurrencyValue
  • Add: @inlinable annotations to both the static and instance member descriptor properties

Result:

Developers now have access to the CurrencyValue descriptor type either at the type or instance level.

@Mordil Mordil added enhancement New feature or request semver-minor Require SemVer Minor bump labels Jan 7, 2025
Motivation:

Sometimes developers are working in type-erased contexts where they can't directly refer to the name of the type of the `CurrencyValue` and need access to the descriptor.

In this cases, having an instance member property to provide the value is straight forward and convenient.

Modifications:

- Add: `descriptor` instance property to `CurrencyValue`
- Add: `@inlinable` annotations to both the static and instance member `descriptor` properties

Result:

Developers now have access to the `CurrencyValue` descriptor type either at the type or instance level.
@Mordil Mordil force-pushed the instance-descriptor branch from 756af82 to 191c9e7 Compare January 7, 2025 22:49
@Mordil Mordil merged commit f4a7028 into 0.7.0 Jan 7, 2025
29 checks passed
@Mordil Mordil deleted the instance-descriptor branch January 7, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver-minor Require SemVer Minor bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant