This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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
  • C was given, I think, a unjustified bash in that post.

    I thought the proponents of 'make it up as you go along' terminology were the ones being bashed, not the programming language.

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

    C++ is used, but I'm not sure how widely. I believe there is a C++ compiler (or possibly a C++ to C translator) available for the 8051.

    I'm now bracing myself for the cries of 'You can't do that! Wrong language! Too big! Too bloated! Hello world needs a 64 bit CPU and 32 gig of RAM!' from all the usual experts who have never tried it.

Reply
  • C was given, I think, a unjustified bash in that post.

    I thought the proponents of 'make it up as you go along' terminology were the ones being bashed, not the programming language.

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

    C++ is used, but I'm not sure how widely. I believe there is a C++ compiler (or possibly a C++ to C translator) available for the 8051.

    I'm now bracing myself for the cries of 'You can't do that! Wrong language! Too big! Too bloated! Hello world needs a 64 bit CPU and 32 gig of RAM!' from all the usual experts who have never tried it.

Children