tape.TagAny should be using reflection #10

Closed
opened 2025-08-10 21:51:25 -06:00 by sashakoshka · 0 comments
Owner

Using a type switch is unacceptable because we need to match underlying types.

We should have a private tagAny that takes in a reflect.Value, and a public TagAny with the current interface. That way, the API can be normal, but the internal functions can directly pass the reflect.Value without it having to be re-created.

Using a type switch is unacceptable because we need to match underlying types. We should have a private `tagAny` that takes in a reflect.Value, and a public `TagAny` with the current interface. That way, the API can be normal, but the internal functions can directly pass the reflect.Value without it having to be re-created.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sashakoshka/hopp#10
No description provided.