Consider adding const fn
support
#192
Labels
crate:fluent-bundle
Issues related to fluent-bundle crate
enhancement
help wanted
We need help making decisions or writing PRs for this.
This would be useful in cases where an explicit language should be chosen during compilation. That way, static values that do not take arguments or depend on pluralization could be directly embedded into the application and improving performance.
With the landing of Rust 1.46 and their const-fn improvements, it would be possible to declare a lot of function as
const
.I know that this is a pretty niche use-case but there are scenarios where this might be useful (mostly on size-restrained devices like embedded systems). The Linux world would probably like this too, as they often enough want to optimize for file size (and not want to include all languages by default for example).
Off-topic
P.S.: The project looks very promising and I'd like to contribute. Although some issues are marked as `help-wanted`, none are marked as `good-first-issue`. And it's hard to judge what issues might be easy to implement for a new contributor! So if you have suggestions, let me know!
The text was updated successfully, but these errors were encountered: