Thursday, October 13, 2005

What I don't like about C\C++

I think that most programming errors stem from the computer language that is used. I mean one of the commonest errors is buffer overrun, which is easy to accidently create with C\C++, but can be done in other languages when you use pointers. Also this has caused something I don't like about Operating Systems, that when you give a system subroutine a string there must be a terminating null. When more modern languages store the length of the string with the pointer, which means you can call a function with a section of a string without creating a new string.

Another thing I don't like about the C\C++ language(s) is the necessary usage of macros to work around an inefective language.

The thing that I really don't like about C\C++ is that it is basically the only choice for low level operations.

No comments: