Join Slack
Powered by
is it idiomatic to use `<*>` for a type para...
# getting-started
y
y
02/27/2023, 11:39 AM
is it idiomatic to use
<*>
for a type parameter that is unused in the current function?
t
Troels Lund
02/27/2023, 11:44 AM
Could you give an example of how this would look? It is unclear to me when you would need to specify an unused type parameter.
y
y
02/27/2023, 11:55 AM
it could be that the type parameter does not matter for the behavior of the current function.
t
Troels Lund
02/27/2023, 12:06 PM
I think it depends on the context, but sure, if you don't know and don't care about a given type parameter, a star projection is fine.
👍 1
5
Views
Open in Slack
Previous
Next