Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Which code style do you prefer the most? Date: Sat, 01 Mar 2025 21:29:29 -0800 Organization: A noiseless patient Spider Lines: 22 Message-ID: <86eczgxao6.fsf@linuxsc.com> References: <87frk10w51.fsf@onesoftnet.eu.org> <87o6ykw7f9.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sun, 02 Mar 2025 06:29:32 +0100 (CET) Injection-Info: dont-email.me; posting-host="3262fa73ab11de5fd8cc37f0606a7eed"; logging-data="695078"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194qQEtClqGb6dJKvb8JlDCURlqn/0GMqk=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:gbNhc1SYE80EdXRXXHUSX/8iEYM= sha1:SdGIvydhpNWwgMYf4LP7F52Xymw= Bytes: 2336 Keith Thompson writes: > Janis Papanagnou writes: > >> On 01.03.2025 23:20, Lawrence D'Oliveiro wrote: >> >>> On Sat, 1 Mar 2025 21:32:59 +0100, Janis Papanagnou wrote: >>> >>>> My guess is that this form is just an informal syntax mimicking >>>> Perl's function parameter passing ... >>> >>> The idea of passing arguments by keyword predates Perl. >> >> That wouldn't surprise me. - I know it from Perl. - Which other >> (earlier) languages do you have in mind? - What's its origin? > > For example, it exists in Ada since 1983. [...] The programming language Mesa had keyword arguments sometime in the mid 1970s. The job control language JCL had keyword arguments in the 1960s.