From: Lawrence D'Oliveiro <ldo@nz.invalid>
Subject: Re: Accessing The Command Line
Date: Thu, 4 Jul 2024 01:50:59 -0000 (UTC) [thread overview]
Message-ID: <v64v62$2erlp$2@dont-email.me> (raw)
In-Reply-To: 87plruhs8e.fsf@nightsong.com
On Wed, 03 Jul 2024 18:16:01 -0700, Paul Rubin wrote:
> C++ does that polymorphism stuff in iostream so you'd write
> std::cout << "my name: " << command_line << ...
I know. The disadvantage of the C++ scheme is you cannot easily reorder
items as necessary to fit the grammar of localized messages. That, I
think, is why lots of other languages (including Python and Lisp) have
copied the printf scheme, yet none have seen fit to copy the C++ scheme.
> printf for some people is one of the motivations for dependent types.
I wonder how you would express such a thing in an Ada-friendly fashion?
next prev parent reply other threads:[~2024-07-04 1:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 0:08 Accessing The Command Line Lawrence D'Oliveiro
2024-07-04 1:16 ` Paul Rubin
2024-07-04 1:50 ` Lawrence D'Oliveiro [this message]
2024-07-04 15:13 ` Rod Kay
2024-07-04 16:15 ` Dmitry A. Kazakov
2024-07-04 11:27 ` Jeffrey R.Carter
2024-07-04 23:54 ` Lawrence D'Oliveiro
2024-07-05 8:58 ` J-P. Rosen
2024-07-04 13:01 ` Dmitry A. Kazakov
2024-07-04 19:42 ` Ben Bacarisse
2024-07-04 22:06 ` Paul Rubin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox