Closed mondeja closed 3 months ago
For example, allow this:
leptos_fluent! {{ ... #[cfg(debug_assertions)] cookie_name: "language", #[cfg(not(debug_assertions))] cookie_name: "l", }}
Don't error if expression paths are the same or incompatible between all fields.
Currently, the above code is possible with an expression:
#[cfg(debug_assertions)] let name = "language"; #[cfg(not(debug_assertions))] let name = "l"; leptos_fluent! {{ ... cookie_name: name, }}
But expressions like booleans are evaluated at runtime, which means that dead code can be injected.
Needs #196
For example, allow this:
Don't error if expression paths are the same or incompatible between all fields.
Currently, the above code is possible with an expression:
But expressions like booleans are evaluated at runtime, which means that dead code can be injected.
Needs #196