Skip to content

Conversation

badboy
Copy link
Member

@badboy badboy commented Sep 22, 2025

Generic parameters are an "input".
A trait TestGetValue<T> can be implemented for the same type multiple times with different concrete types T.
That's never needed for TestGetValue, we only have a single type that should be returned from test_get_value.
An associated parameter is the way to do that.

@badboy badboy requested a review from a team as a code owner September 22, 2025 09:58
@badboy badboy requested review from jeddai and removed request for a team September 22, 2025 09:58
@badboy badboy force-pushed the push-rwpnlmtyrnov branch 2 times, most recently from bac9de2 to 03af169 Compare September 22, 2025 14:27
…n output parameter

Generic parameters are an "input".
A trait `TestGetValue<T>` can be implemented for the same type multiple
times with different concrete types `T`.
That's never needed for `TestGetValue`, we only have a single type that
should be returned from `test_get_value`.
An associated parameter is the way to do that.
@badboy badboy force-pushed the push-rwpnlmtyrnov branch from 03af169 to 39a0474 Compare October 1, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant