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
Copy link
Member

@jeddai jeddai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this is definitely a good change, great call

@badboy badboy merged commit ffde19f into main Oct 6, 2025
27 of 28 checks passed
@badboy badboy deleted the push-rwpnlmtyrnov branch October 6, 2025 13:29
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.

2 participants