On 2011-12-21, Grant Edwards <invalid@invalid.invalid> wrote: > On 2011-12-21, Neil Cerutti <ne...@norwich.edu> wrote: >> On 2011-12-20, Paul Rubin <no.email@nospam.invalid> wrote: >>> Grant Edwards <invalid@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 -- http://mail.python.org/mailman/listinfo/python-list