Deutsch English Français Italiano |
<vpvqtt$ckvi$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: Which code style do you prefer the most? Date: Sat, 1 Mar 2025 21:32:59 +0100 Organization: A noiseless patient Spider Lines: 35 Message-ID: <vpvqtt$ckvi$1@dont-email.me> References: <vpkmq0$21php$1@dont-email.me> <vpl62m$250af$1@dont-email.me> <87frk10w51.fsf@onesoftnet.eu.org> <vpn8vs$2jmv1$1@dont-email.me> <vpn92i$86q$1@reader1.panix.com> <vpodnf$2q6ak$4@dont-email.me> <vpovd0$30d00$1@dont-email.me> <vpp011$30evb$1@dont-email.me> <vpp8ag$31ooi$1@dont-email.me> <vppaeq$323aa$1@dont-email.me> <vprpss$3ipmu$1@dont-email.me> <vprtlj$3jdn5$1@dont-email.me> <vprv75$3jmqu$1@dont-email.me> <vps2k5$3k722$1@dont-email.me> <vpt8ju$3r2n0$6@dont-email.me> <vpvcrm$9uaj$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 01 Mar 2025 21:33:01 +0100 (CET) Injection-Info: dont-email.me; posting-host="0f8f7c60955e6f7186eaf1446512a0dc"; logging-data="414706"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rZGUqMnBRx0KN58fOzwSf" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:+f/R7C1s1Lz3QrHCXJDt3hDT3rg= In-Reply-To: <vpvcrm$9uaj$2@dont-email.me> X-Enigmail-Draft-Status: N1110 Bytes: 2995 On 01.03.2025 17:32, David Brown wrote: > On 28/02/2025 22:08, Lawrence D'Oliveiro wrote: >> On Fri, 28 Feb 2025 10:19:49 +0000, Richard Heathfield wrote: >> >>> value = really_quite_extremely_long_function_name(arg1, >>> arg2, >>> arg3, >>> arg4); >> >> confection = prepare_carefully_according_to_detailed_recipe >> ( >> /*pan =*/ flat, >> /*line_with =*/ clarified_butter, >> /*filling =*/ something_yummy, >> /*cover_with =*/ lotsa_pastry, >> /*bake_for =*/ 90 * MINUTES >> ); > > I get the impression that you work alone. My guess is that this form is just an informal syntax mimicking Perl's function parameter passing as hash with the passed values associated with the formal parameter names in the call. - You know; he's a Perl fan. - Of course it's one thing if a language supports such parameter passing mechanisms or if you just make it look like that but without actually getting the (indeed neat) mechanism [that you have in Perl]. So this not only looks bad (in "C") but also doesn't work as desired. In C++ we could use specific argument objects to support defaults and any argument order, but in "C" it would probably get yet more clumsy to support that. Janis