C not stongly typed enough?

Hello all,
I have been following the recent clashes between various participants (see the post "Compiling differences between C51 v7.03 and v8.06" or "introducing the smoked sardine complex" :) :) ).
C was given, I think, a unjustified bash in that post. I wouldn't like to have been compelled to explicitly cast too often. Most potentially dangerous casts can be filtered out by a static code analyzer. Can you give an example of more strongly-typed languages than C that are used in embedded development?

Parents
  • Can you give an example of more strongly-typed languages than C that are used in embedded development?

    That's a tough one. Strongly-types languages are usually also high-level, and those are used rarely in "small" embedded systems.

    Java and Pascal would, for example, be somewhat more strongly typed than C.

    Python (rarely used in small embedded systems, but useful on the PC side) would be strongly typed.

Reply
  • Can you give an example of more strongly-typed languages than C that are used in embedded development?

    That's a tough one. Strongly-types languages are usually also high-level, and those are used rarely in "small" embedded systems.

    Java and Pascal would, for example, be somewhat more strongly typed than C.

    Python (rarely used in small embedded systems, but useful on the PC side) would be strongly typed.

Children
More questions in this forum