Deutsch English Français Italiano |
<uthf4s$28e7g$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Chris Ahlstrom <OFeem1987@teleworm.us> Newsgroups: comp.os.linux.advocacy Subject: Re: Tabs As Syntax Date: Thu, 21 Mar 2024 10:10:33 -0400 Organization: None Lines: 29 Message-ID: <uthf4s$28e7g$1@dont-email.me> References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com> <utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me> <l624u3Fn16lU13@mid.individual.net> Reply-To: OFeem1987@teleworm.us Injection-Date: Thu, 21 Mar 2024 14:10:36 -0000 (UTC) Injection-Info: dont-email.me; posting-host="7a898fcdf8dbe581452a4643ee635ad7"; logging-data="2373872"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Gb1+2KDFcARod4dXLa/Xf" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:RXA1KhptX0VsFLtFIAO9leaRHS4= X-Mutt: The most widely-used MUA X-User-Agent: Microsoft Outl00k, Usenet K00k Editions X-Slrn: Why use anything else? Bytes: 1921 rbowman wrote this copyrighted missive and expects royalties: > 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]);} for (int n : { 2, 4, 6, 8 }) std::cout << n << ", "; std::cout << "who do we appreciate?" << std::endl (std::endl is \n with a flush. -- Q: How many Zen masters does it take to screw in a light bulb? A: None. The Universe spins the bulb, and the Zen master stays out of the way.