Path: ...!feeds.phibee-telecom.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.lang.c Subject: Re: Whaddaya think? Date: Sat, 22 Jun 2024 22:14:04 -0000 (UTC) Organization: A noiseless patient Spider Lines: 34 Message-ID: <20240622151026.607@kylheku.com> References: <666ded36$0$958$882e4bbb@reader.netnews.com> <87ed8x4zjl.fsf@nosuchdomain.example.com> <666f10b7$0$1412896$882e4bbb@reader.netnews.com> <20240617003207.452@kylheku.com> <66703f13$0$7062$882e4bbb@reader.netnews.com> Injection-Date: Sun, 23 Jun 2024 00:14:04 +0200 (CEST) Injection-Info: dont-email.me; posting-host="84ae72b3df34410d1de3ee3e933d9441"; logging-data="4155306"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19G425XzkAGTZWLZ+XevZVX3+u3tLuZQhA=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:/OMqiI+FNQs4AWNVJqVeEI7EBOo= Bytes: 2212 On 2024-06-17, Richard Harnden wrote: > On 17/06/2024 14:50, DFS wrote: >> On 6/17/2024 3:39 AM, Kaz Kylheku wrote: >> >>> I think DFS might mean that they find themselves >> >> he finds himself >> >> >>> unable to omit the unnecessary return 0 statement entirely. >> >> yes >> >> > > If a function is defined to return an int, then you should return one. > > Anything else is just lazy/sloppy. Just because main allows it as a > special case doesn't mean it's a good idea. > > I mean: it's really not much extra to type. The misfeature of missing return being success was, I believe, not intended to make programs shorter. It was intendeda to correct the random termination statuses of countless numbers of programs in a single stroke. Deliberately relying on this in a new program is like relying ona a diaper. If you're of intermediate age, you don't do this. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca