Deutsch English Français Italiano |
<v4r8gp$17ck4$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: Whaddaya think? Date: Tue, 18 Jun 2024 08:12:40 +0200 Organization: A noiseless patient Spider Lines: 25 Message-ID: <v4r8gp$17ck4$1@dont-email.me> References: <666ded36$0$958$882e4bbb@reader.netnews.com> <87ed8x4zjl.fsf@nosuchdomain.example.com> <666f10b7$0$1412896$882e4bbb@reader.netnews.com> <v4o7om$er18$1@dont-email.me> <667030fa$0$7079$882e4bbb@reader.netnews.com> <87o77zvdgy.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 18 Jun 2024 08:12:42 +0200 (CEST) Injection-Info: dont-email.me; posting-host="2cfb9c8e8c0845d0115863010bdaf45c"; logging-data="1290884"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18twD8b8p97VGlSGSitiApr" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:ewZtBA0AqUywI2BgW08/DFXBS9M= In-Reply-To: <87o77zvdgy.fsf@bsb.me.uk> X-Enigmail-Draft-Status: N1110 Bytes: 2132 On 17.06.2024 16:41, Ben Bacarisse wrote: > DFS <nospam@dfs.com> writes: >> >> Moving forward, return 0 it is. > > By the way, you might have retained return (exp); from old C. C > originally required the parentheses, but they got dropped quite early > on. The syntax in K&R (1st edition) does not require them, but almost > all the code example in the book still have them! This is an interesting observation! (That I can confirm.) That's probably why originally I also used parenthesis. I saw the examples but didn't inspect the syntax appendix. But how did the early compiler behave? Did they follow the code samples' syntax or the formal syntax? > I took a while to drop them as I came to C from B where they were always > required so I'd got the habit. I dropped them as soon as I noticed that it's possible. Janis