C++ Logo


Advanced search

Re: [std-proposals] Proposal to add f-strings to C++ as an improvement of string formatting

From: Yuri <yuri_at_[hidden]>
Date: Wed, 28 Dec 2022 00:39:29 -0800
You are right, f-strings aren't foreign language translation friendly. I
should have added this into the "Limitations" section.

But there's a lot of software that is rarely or never translated. For
example, electronic CAD software is rarely translated. Even C++
compilers, clang and gcc, aren't translated on my system.


On 12/28/22 00:16, Henry Miller via Std-Proposals wrote:
> Your second objection to format is a basic requirement of all string systems, and so any string library, in any programming language that doesn't feature that is wrong. It is critical that all programmers get used to the idea their strings may need to be translated to some foreign language. Different languages feature different word order and so the order the variables appear in the output must be flexible.
> While is seems likely that any string that gets translated will use the strings provided by their UI toolkit and not std, we should still encourage the mindset in young programmers that variables should not be in the same order as the output.

Received on 2022-12-28 08:39:32