Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Chris Ahlstrom Newsgroups: comp.os.linux.advocacy Subject: Re: More Funny Stuff From Joel Date: Tue, 11 Jun 2024 08:13:31 -0400 Organization: None Lines: 23 Message-ID: References: <17d716103c089ab3$7951$675878$802601b3@news.usenetexpress.com> <2ej96j1mbvgiok4q5c57vdlo94itpfu5dt@4ax.com> <6664e989$0$2363151$882e4bbb@reader.netnews.com> Reply-To: OFeem1987@teleworm.us Injection-Date: Tue, 11 Jun 2024 14:13:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7b45443339d8814a3a931dc1e6d40844"; logging-data="1102292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/emyJ9Dw8yTfz0XkqCAHKU" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:34hJrOKIdKprfvohWq0ONT1v5KM= X-Slrn: Why use anything else? X-Mutt: The most widely-used MUA X-User-Agent: Microsoft Outl00k, Usenet K00k Editions Bytes: 2283 rbowman wrote this copyrighted missive and expects royalties: > On Tue, 11 Jun 2024 04:50:03 -0000 (UTC), candycanearter07 wrote: > >> rbowman wrote at 04:30 this Tuesday (GMT): >>> On Tue, 11 Jun 2024 02:40:08 -0000 (UTC), candycanearter07 wrote: >>> >>>> const char *phr = phrase; >>> >>> Oh, you're one of those :) >> >> >> What's that mean? > > I'm not very fond of const. It has its place but it gets thrown around > promiscuously. A function where a parameter has be defined as a const for > no particular reason can gum up the works. const is used to enforce certain semantics. Of course, it is not necessary for a simple C function parameter (e.g. an int) to be const unless one is pedantic. -- Your temporary financial embarrassment will be relieved in a surprising manner.