Deutsch English Français Italiano |
<vq2l61$v1q6$14@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: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: Which code style do you prefer the most? Date: Sun, 2 Mar 2025 22:13:21 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: <vq2l61$v1q6$14@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> <vpvqtt$ckvi$1@dont-email.me> <vq017i$dkuj$2@dont-email.me> <vq02is$duht$1@dont-email.me> <87o6ykw7f9.fsf@nosuchdomain.example.com> <vq1fj3$oll9$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 02 Mar 2025 23:13:21 +0100 (CET) Injection-Info: dont-email.me; posting-host="4879a8900fe2dd21742e8795ad5f83f5"; logging-data="1017670"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qCHId/bEreyYAayZgWHrR" User-Agent: Pan/0.162 (Pokrosvk) Cancel-Lock: sha1:pkckaRnnj/e1yN4b4XRUxWQgT+s= Bytes: 2406 On Sun, 2 Mar 2025 11:31:48 +0000, bart wrote: > Does it have optional arguments with default values? IMO keyword > arguments are much less useful without that feature/ The two do seem to go together. ;) Python has long had the feature of, not only *allowing* arguments to be specified by keyword, but *requiring* them to be passed that way, for all arguments after a specified point in the argument list. Newer versions even go a step further, some might say in the backwards direction, by *requiring* arguments prior to a specified point to be passed by position only, not keyword. Of course, all this ties in to the great flexibility you have with dealing in argument lists in Python, allowing not just for the caller to pass arbitrary numbers of arguments, but also use arbitrary names for them.