Sujet : Re: Accessing The Command Line
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.adaDate : 04. Jul 2024, 03:50:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v64v62$2erlp$2@dont-email.me>
References : 1 2
User-Agent : Pan/0.158 (Avdiivka; )
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?