fluent-rs icon indicating copy to clipboard operation
fluent-rs copied to clipboard

Allow customizing argument resolver

Open JasperDeSutter opened this issue 2 years ago • 2 comments
trafficstars

The main value add for a custom argument resolver is not needing to put arguments into a FluentArgs, which has no type safety. See the typesafe_messages example that demonstrates this use case. The first commit optimizes FluentArg by not storing keys as Cows, but as regular &str instead. This reduces a small overhead in data size and arg lookup performance.

JasperDeSutter avatar Dec 16 '22 13:12 JasperDeSutter

Oh and also thanks for the PR :)

gregtatum avatar Dec 20 '22 21:12 gregtatum

Great to see this project more alive again! I'll pick up my PRs that are still open, though it has been a while so it might take some time to get them all updated.

JasperDeSutter avatar May 06 '24 17:05 JasperDeSutter