Am 20.05.2012 20:33, schrieb lovecreatesbeauty:
1. why no algorithm and data structure library proposed?
because C usually has a stricter distinctiong between the language and
support libraries
i think if C has stack, queue, hash map.. like those in C++/STL,
many C++ application programmers will come to C again.
there is no need for people coming back to C, it is one of the most used
programming languages of today.
To my personal opinion (and experience) C++ does it best to scare people
off, but which doesn't mean that they will go to use C.
2. why thread (posix) proposed while socket (posix) not?
I think one of the most important additions by C11 (and C++1 BTW) are
atomic operations that definitively should be a language feature. But
atomicity needs a precise description of concurrency and sequencing of
data access. Thus there is the thread interface coming into play. BTW,
this is not the same as POSIX threads: in terms of functionality it is
only a small subset of POSIX and even has some differences.
It seems that for networking code there was no need to place that
insided the language.
3. will this C11 fail like C99?
First C99 didn't fail. It only failed on one platform and for one major
software vendor not playing the game. All others have it.
For C11 only the future will tell, but signs are quite good that it
wouldn't fail. It brings important features and the two major open
source compilers (gcc and clang) are actively integrating it.
will it be dead until replaced by the next paper work and no one
implementents it?
It is basically implemented. Many compilers already have the features as
extensions, only syntax might be a bit different. With a bit of macro
patching around these syntactical differences you may come already quite
close in programming with C11. P99 offers you that glue for gcc and
derivatives (with this respect these are icc, open64 and clang) on POSIX
platforms.
Jens