Replace ReadContext.metadata
with typemap
.
#305
Labels
area/filters
Related to Quilkin's filter API.
kind/design
Proposal discussing new features / fixes and how they should be implemented
priority/low
Issues that don't need to be addressed in the near term.
Currently the
metadata
field requires knowing the right string, and then knowing what type to downcast to. However we can actually encapsulate these things into the type system, and we can take it a step further and use types instead of strings to identify dynamic metadata, this is not only more efficient as it removes two levels of indirection in the lookup (Arc -> String -> str), it also guarantees that the value will always be the right type. Here's an example of how the capture bytes metadata would work.The text was updated successfully, but these errors were encountered: