Article View: comp.lang.c++
Article #890Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Ross Finlayson
Date: Mon, 16 Nov 2026 19:52
Date: Mon, 16 Nov 2026 19:52
190 lines
10261 bytes
10261 bytes
On 11/16/2026 11:16 AM, Richard Harnden wrote: > On 16/11/2026 16:33, Ross Finlayson wrote: >> On 11/16/2026 06:04 AM, David Brown wrote: >>> On 16/11/2026 12:57, Ross Finlayson wrote: >>>> On 11/16/2026 03:37 AM, David Brown wrote: >>>>> On 16/11/2026 11:21, Ross Finlayson wrote: >>>>>> >>>>>> One way to read what your saying is "algebraizations" and >>>>>> "arithmetizations", that's the act of interpreting models of >>>>>> objects their matters of relation according to the matters of >>>>>> relation of algebras and arithmetic. >>>>>> >>>>> No, that is not a way to read what I wrote. I wrote in English. >>>>> >>>>> Please find some way to write comprehensibly, without the waffling and >>>>> rambling, and focusing on the point you are trying to make. >>>>> >>>>> Maybe you could try this for a plan. Before hitting "send" on a post, >>>>> give the post to your favourite AI slopbot and ask it to generate a >>>>> single paragraph summary. If that summary does not match what you >>>>> wanted to say, you know you need to express your post differently. >>>>> And >>>>> if it /does/ match what you want to say, just post that summary so >>>>> that >>>>> other people don't need to wade through your original post. >>>>> >>>> >>>> I dispute your estimation of my command of English. >>>> >>>> Wherever you got the impression that what I write >>>> isn't perfectly grammatical, if long-winded and >>>> for some a bit the too run-on the style, forget it. >>>> >>>> Of course above where I wrote "your" for "you're", >>>> that's intolerable. >>> >>> >>> Your grammar is imperfect, but not nearly bad enough to be an issue. >>> Real problems include your regular use of words and phrases in a way >>> that simply does not match their meaning. Run-on sentences are bad when >>> they are too frequent, but made much worse by your overuse of "filler" >>> words and phrases. Much of what you write would be more appropriate for >>> a politician giving a filibuster speech. >>> >>> The root problem, I think, is that you have no focus in your writing. >>> There is an open conduct between your thoughts and the words you type. >>> Your thoughts wander, and - like everyone else - /you/ understand what >>> you are thinking about. But other people do not live in your head. If >>> you want people to understand what you are thinking about, you have to >>> write in a way that other people can understand it - not just throw your >>> thoughts at a page randomly. >>> >>> I believe you have things worth saying. That's why I am trying to >>> suggest how you can improve your communication skills. Many others just >>> write your posts off as "gobbledegook" or ignore them entirely. (The >>> number of people that have given such feedback should be an indication >>> that the problem here is the writer, not the readers.) >>> >>> This will, I think, be the last post I make directly to you (at least >>> for a while) - unless you specifically ask for something. If you >>> understand what I am trying to say, and appreciate that you have a >>> serious problem communicating, then you can do something about it. If >>> you don't think that is the case, then you will continue to write posts >>> that are mostly ignored because they are simply too much effort to read. >>> >> >> >> Hm. Why, then, thank you good sir, such constructive criticism is >> estimated a fair and forthright or the conscientious opinion. >> >> That said, I'll yet aver that my command of the concepts is >> very strong, and it's toward, for example, "Grice", "Grice's maxims", >> of communication, or for example typical accounts of, "effective >> communication", vis-a-vis ethos and pathos and kairos here the _logos_, >> and not mambly-pambly sorts manager-speak, nor "control freaks", >> I'll aver that the more you know the better it goes. >> >> >> Thanks for writing. >> >> If I may, I'd then ask "are there any questions or perceived >> paradoxes or estimated particulars of incorrectness that it >> may help to clarify?" >> >> >> Some people prefer questions or the pointed, others a sort >> of tendered reserve, implying invitation to remarks, then >> as to whether, if I suggest that I _would_ ask, is that asking? >> >> >> That said, then in an obligatory manner about logical statement >> and parenthesis, has that precedence is most commonly C and C++'s >> vis-a-vis, for example Java's _few_ differences in precedence >> of priority of evaluation of operators their expressions in expressions, >> and never hurts, except for readability when >> it's obvious both the intent and the meaning. >> >> > > [There's really no reason to read this. I'm sorry ...] > > Me: > How do I do list comprehensions in C? > > ChatGPT: > [reasonable answer] > > Me: > Thanks, but I want the question to be far more verbose. Maybe with more > keywords (even if they're not relevant). Basically I want lots of > waffle - even if it makes me sound like an idiot. > > ChatGTP: > Ah, I see! > > You don't just want to ask how to implement Python-style list > comprehensions in C. You want to wrap the question in an impressive > amount of unnecessarily complicated technical terminology, preferably > making a relatively straightforward programming problem sound like a > major software architecture challenge. > > I can certainly help with that. 😂 > > Here's a suitably over-engineered version: > > I'm interested in exploring the possibility of implementing a mechanism > within the C programming language that provides functionality > conceptually analogous to Python's list comprehension syntax. > More specifically, I'm looking at whether it's possible to introduce a > declarative approach to collection construction and transformation, > allowing the generation of derived data structures through the > application of expressions, conditional predicates, iteration strategies > and potentially nested evaluation constructs. > > Ideally, I'd like to investigate whether this could be achieved using > some combination of preprocessor macros, generic programming techniques, > function pointers, callback mechanisms, higher-order abstractions and > possibly C11 language features. > > I'm particularly interested in understanding how such an implementation > might facilitate operations equivalent to mapping, filtering, > projection, selection and aggregation, while minimising unnecessary > boilerplate and maintaining reasonable levels of type safety, memory > management discipline and runtime efficiency. > > It would also be interesting to consider whether a lightweight > abstraction layer could provide a more expressive, > functional-programming-inspired interface without fundamentally > compromising the procedural nature, portability or performance > characteristics of conventional C. > > Are there any established design patterns, implementation strategies or > library-level approaches that would lend themselves to this kind of > functionality? I'd also be interested in any potential limitations > imposed by the language's lack of native closure support, dynamic typing > and built-in collection abstractions. > > And if you really want to go overboard, here's a suggested opening > sentence: > "I am seeking to investigate the feasibility of introducing a > Python-inspired, declarative, functional-style collection transformation > paradigm into an otherwise predominantly imperative, statically typed, > low-level systems programming environment." > > There. You've turned "How do I do list comprehensions in C?" into > something that sounds like a six-month research project with a steering > committee. 😁 > > Me: > Excellent, thank you > > ChatGPT: > You're very welcome! 😁 > > Always happy to turn a perfectly sensible programming question into an > unnecessarily complicated technical specification. > > It's practically an art form. 😂 > > [Sorry again. I shall now crawl back under my rock.] > > > "Can it use _Generic from C11 to result the eventual evaluation is implicitly and strongly typed?" "Shouldn't it be called _deferred_ or _suspended_ "comprehension"?"
Technical Details
Message-ID:
<PN-cnZ_nhYSFwmb3nZ2dnZfqnPSdnZ2d@giganews.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-3.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <11cj8ch$24f93$1@dont-email.me> <11cj9he$24mi0$1@dont-email.me> <11d54u2$863c$1@dont-email.me> <11d5eg2$bfhu$1@dont-email.me> <11d6if2$lqnd$1@dont-email.me> <11d7a99$th7r$1@dont-email.me> <11d7f1t$1839o$1@dont-email.me> <11d82gp$1f70n$1@dont-email.me> <11dc7da$2nu91$1@dont-email.me> <pimdnUKCD4LIRGf3nZ2dnZfqnPWdnZ2d@giganews.com> <11depuh$3gu10$1@dont-email.me> <gLmdnYGfb6w4cmf3nZ2dnZfqn_GdnZ2d@giganews.com> <11df2i3$3k156$1@dont-email.me> <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com> <11dfkpo$3r3q3$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-3.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 16 Nov 2026 19:52:56 +0000 Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Newsgroups: comp.lang.c++,comp.lang.c References: <11cj4a0$23796$1@dont-email.me> <11cj8ch$24f93$1@dont-email.me> <11cj9he$24mi0$1@dont-email.me> <11d54u2$863c$1@dont-email.me> <11d5eg2$bfhu$1@dont-email.me> <11d6if2$lqnd$1@dont-email.me> <11d7a99$th7r$1@dont-email.me> <11d7f1t$1839o$1@dont-email.me> <11d82gp$1f70n$1@dont-email.me> <11dc7da$2nu91$1@dont-email.me> <pimdnUKCD4LIRGf3nZ2dnZfqnPWdnZ2d@giganews.com> <11depuh$3gu10$1@dont-email.me> <gLmdnYGfb6w4cmf3nZ2dnZfqn_GdnZ2d@giganews.com> <11df2i3$3k156$1@dont-email.me> <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com> <11dfkpo$3r3q3$1@dont-email.me> From: Ross Finlayson <ross.a.finlayson@gmail.com> Date: Mon, 16 Nov 2026 11:52:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <11dfkpo$3r3q3$1@dont-email.me> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <PN-cnZ_nhYSFwmb3nZ2dnZfqnPSdnZ2d@giganews.com> Lines: 190 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-VQgKfMmqPjTQ2PVcehc6q22yMXBqak3Dj3JbQ/BMDVVl2pmjZtEQDc2irGtYMKLoZIX75y2VvwudA/t!2lC3qTg54+jLeUkJnEnWNGqQsEH80ODeRFex3dvHwIcsWqPFCB9XO5XcmG8q7DkD5BVCT/XxW0TC X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40