Deutsch English Français Italiano |
<l624u3Fn16lU13@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman <bowman@montana.com> Newsgroups: comp.os.linux.advocacy Subject: Re: Tabs As Syntax Date: 21 Mar 2024 07:12:03 GMT Lines: 18 Message-ID: <l624u3Fn16lU13@mid.individual.net> References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com> <utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net ObUsCbUxJw1tcSng5pscLQmkVP87wlnA+CxjMq+BiwEUBAI/iN Cancel-Lock: sha1:PQOyxyuiawg8IXrP61nEG6Qk8vA= sha256:rdTXKIHqT2TFWqaOjFtMYzwPlT9CCHdmyC2GqeLrrVQ= User-Agent: Pan/0.149 (Bellevue; 4c157ba) Bytes: 1200 On Wed, 20 Mar 2024 10:25:39 -0400, DFS wrote: > Python style (forced indents, no forced brackets) is shorter and more > readable than C style (no forced indents, forced brackets). for i in range(10): print(f"foo[{i} is {foo[i]}") for (i=0; i<10; i++) { printf("foo[%d] is %s\n", i, foo[i]); } Whoopee! Python wins by one line! Unless of course for (i=0; i<10; i++) {printf("foo[%d] is %s\n", i, foo[i]);}