> Instead, we could perfectly imagine a "gettext-like" equivalent that takes
> both an "original" format string (to be translated) *and* its arguments and
> then will use fmt! under the hood to produce a fully translated string to
> be fed to the Writer instance.

I'm sorry, but I don't see how your description differs from gettext's behavior.

> There is no point in being as loose as C.

Being able to check at compile time wether the format string matches the number 
of arguments is great ! I'm definitely not in favor of being as loose as C on 
this aspect.

So, we can choose to say that this particular use case is so much exceptional 
that it is not worth trying to support it. I'm sure it would be a reasonable 
choice.
Or we can find a way to declare explicitely, in the format string, that one or 
more parameters should be ignored. Maybe a %ignore at the end of the string ?
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to