Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #17702

Re: [OT] Quick intro to C++ for a Python and C user?

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: [OT] Quick intro to C++ for a Python and C user?
Date 2011-12-21 21:02 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <jcthh3$8vd$1@reader1.panix.com> (permalink)
References (2 earlier) <jcqrtk$4g4$1@reader1.panix.com> <7xr4zzx8k9.fsf@ruckus.brouhaha.com> <9le7c5F1lsU1@mid.individual.net> <jcsueu$cmg$1@reader1.panix.com> <9lef2pFgggU1@mid.individual.net>

Show all headers | View raw


On 2011-12-21, Neil Cerutti <neilc@norwich.edu> wrote:
> On 2011-12-21, Grant Edwards <invalid@invalid.invalid> wrote:
>>
>>>> Templates are how C++ does generics and I'd expect them to
>>>> appear in be used in embedded programming as well as elsewhere.
>>
>> I've only worked on the perphery of a couple embedded projects that
>> used C++, but it seems to be farily common practice to prohibit the
>> use of templates in embedded code.  The problem seems to be that
>> people writing C++ code don't really understand the language, how
>> templates work, or (in general) the implications of the code they
>> write.  So, you have to prohibit anything that can be easily misused
>> or cause non-obvious problems.
>
> I cheerfully agree that programmers ignorant of C++ should not
> write programs in it. But furthermore, they should also not
> define a subset of C++ for use in embedded programming. ;)

I fully agree that programmers ignorant of C++ should not write
programs in it.  However C++ is a vast, complex, and dangerous
language -- and industry doesn't seem to be willing to limit itself to
using the seven people on the planet who understand it.

I'm only half joking...  :)

It seems to me that you need to know far more about C++ to use it
safely than you need to know about most other languages to use them
safely.

-- 
Grant Edwards               grant.b.edwards        Yow! Hey, waiter!  I want
                                  at               a NEW SHIRT and a PONY TAIL
                              gmail.com            with lemon sauce!

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[OT] Quick intro to C++ for a Python and C user? Grant Edwards <invalid@invalid.invalid> - 2011-12-20 17:40 +0000
  Re: [OT] Quick intro to C++ for a Python and C user? Neil Cerutti <neilc@norwich.edu> - 2011-12-20 18:36 +0000
    Re: [OT] Quick intro to C++ for a Python and C user? Grant Edwards <invalid@invalid.invalid> - 2011-12-20 20:41 +0000
      Re: [OT] Quick intro to C++ for a Python and C user? Paul Rubin <no.email@nospam.invalid> - 2011-12-20 13:00 -0800
        Re: [OT] Quick intro to C++ for a Python and C user? Neil Cerutti <neilc@norwich.edu> - 2011-12-21 14:04 +0000
          Re: [OT] Quick intro to C++ for a Python and C user? Roy Smith <roy@panix.com> - 2011-12-21 09:26 -0500
          Re: [OT] Quick intro to C++ for a Python and C user? Grant Edwards <invalid@invalid.invalid> - 2011-12-21 15:37 +0000
            Re: [OT] Quick intro to C++ for a Python and C user? Neil Cerutti <neilc@norwich.edu> - 2011-12-21 16:16 +0000
              Re: [OT] Quick intro to C++ for a Python and C user? Grant Edwards <invalid@invalid.invalid> - 2011-12-21 21:02 +0000
                Re: [OT] Quick intro to C++ for a Python and C user? Ethan Furman <ethan@stoneleaf.us> - 2011-12-21 13:15 -0800
                Re: [OT] Quick intro to C++ for a Python and C user? Roy Smith <roy@panix.com> - 2011-12-21 20:02 -0500
                Re: [OT] Quick intro to C++ for a Python and C user? Neil Cerutti <neilc@norwich.edu> - 2011-12-22 13:19 +0000
  Re: [OT] Quick intro to C++ for a Python and C user? Paul Rubin <no.email@nospam.invalid> - 2011-12-20 11:43 -0800
  Re: [OT] Quick intro to C++ for a Python and C user? Grant Edwards <invalid@invalid.invalid> - 2011-12-20 20:51 +0000
    Re: [OT] Quick intro to C++ for a Python and C user? Paul Rubin <no.email@nospam.invalid> - 2011-12-20 13:06 -0800

csiph-web