Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: To C or not to C++ Date: Wed, 10 Aug 2022 10:11:00 -0700 Organization: None to speak of Lines: 33 Message-ID: <87iln0owgr.fsf@nosuchdomain.example.com> References: <2868500762@darkrealms.ca> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="122cc4663e73c704c62683f159d0c587"; logging-data="1996539"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zeNmipM45Zw14M4qMLZVt" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:xHI4rq8eyhESTB97oyP9/eVj1P4= sha1:Qn7bwlJVHLTFkeHnsmplPNOlWLA= Xref: csiph.com comp.lang.c++:85836 Muttley@dastardlyhq.com writes: > On Wed, 10 Aug 2022 02:25:18 +0200 > Manfred wrote: >>On 8/9/2022 11:07 AM, Ralf Fassel wrote: >>> * Juha Nieminen >>> | I have never even heard of the "sketch" language so I can't comment. >>> | If I had to make a completely wild guess it's probably some kind of >>> | "higher-level" language with its own pros and cons compared to both >>> | C and C++. >>> >>> On the Arduino, you usually only write the loop() (in C/C++) >> >>Note that the expression (C/C++) is considered a Bad Word nowadays. >>The fact is that, even if in principle a C code fragment can be compiled >>as C++ code, which might suggest the two languages are closely related, >>in truth they are now very different languages, so that they can't be >>mixed with each other. >>If you are writing code that compiles both as C and C++, then you are in >>fact writing C code, not C++. >> >>It may or may not be important to you, but if you show up at a job >>interview talking about C/C++, you will effectively show up as someone >>who does not know what they are talking about, so beware. > > Depends on the job requirements. Some places require knowledge of both > languages and someone good with C++ isn't always good at writing efficient C. Sure, but "C/C++" isn't a good way to say that. You never see "C/Java". -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */