C++ Logo

std-proposals

Advanced search

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

From: Zhihao Yuan <zy_at_[hidden]>
Date: Thu, 29 Dec 2022 00:27:49 +0000
On Wednesday, December 28th, 2022 at 7:11 AM, Jason McKesson via Std-Proposals <std-proposals_at_[hidden]> wrote:
>

> Interpolated strings are not inherently bad practice, but they are bad
> practices within certain contexts.
>

> Contexts that C++ widely gets used in.
>

> So however nifty they are, they also push C++ programmers to think of
> their code as ephemeral. Which it almost never is.

Whether or not interpolated strings
have anything to do with encouraging
"ephemeral codes," I don't want to
make people think C++ as "made for
good® programming" irrelevant to how
you define "good." Bjarne included
"provide comprehensive support for
each supported style" as one of C++'s
design rules for a reason.

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
_______________________________________________

Received on 2022-12-29 00:28:02