[A83] Re: C(++) programming


[Prev][Next][Index][Thread]

[A83] Re: C(++) programming




Languages like PHP and Perl are similiar to this.  PHP makes it very easy to
work with data because all storage allocation is automatic and variables
have dynamic typing.  It's slower because the language has to be
interpreted, but it can save an immense amount of programming time, and
prevent errors like buffer overflows.  However, it can get messy and
difficult to work in large projects with multiple programmers, because there
is no way for the interpreter to know what you might be intending to do with
a variable.

One thing to point out that is that dynamic typing and automatic storage
allocation are completely separate things, and one can exist without the
other.  You can do a lot of nice things quickly with C++ by making effective
use of STL and other template libraries.  You get the efficiency of C,
faster development like PHP and strict typing like Pascal.

> >in C if a varaible is declared, but no type is given, it should default
to
> >int, but in c++ they dropped this 'feature'
>
> Hmm.  VB developed a data type called 'variant' which is even more
> loose.  It basically gets a type when you get around to assigning data to
> it, but that type might shift in the future if a better type came
> along.  Very messy stuff to work with, as well as a bit slow.






References: