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

Neil Cerutti neilc at norwich.edu
Wed Dec 21 11:16:26 EST 2011


On 2011-12-21, Grant Edwards <invalid at invalid.invalid> wrote:
> On 2011-12-21, Neil Cerutti <neilc at norwich.edu> wrote:
>> On 2011-12-20, Paul Rubin <no.email at nospam.invalid> wrote:
>>> Grant Edwards <invalid at invalid.invalid> writes:
>>>> Oops. I should have mentioned this is for embedded systems
>>>> programming so templates in general (and STL in particular)
>>>> are probably off the table.
>>>
>>> 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. ;)

-- 
Neil Cerutti



More information about the Python-list mailing list