Re: Simplicity has a future
- From: Marc Boyer <Marc.Boyer@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 14:49:13 +0000 (UTC)
Le 31-05-2006, Richard Heathfield <invalid@xxxxxxxxxxxxxxx> a écrit :
Le 31-05-2006, Richard Heathfield <invalid@xxxxxxxxxxxxxxx> a écrit :
[Any] C programmer having trouble understanding the code would probably
have trouble understanding "Winnie the Pooh".
What is your definition of "C programmer" ?
Someone who understands C.
All the C99 standard ?
When did you met C beginner last time ?
Have you read this newsgroup recently?
I read very quicky... There are everyday too much
messages for me.
e My C++ solution, however, is even simpler!
extern "C" {
#include "my_c_solution's_header.h"
};
and linking in <insert library name here>.
So C++ is simpler than C: that is what I wanted to illustrate ;-)
If you say so. But C is simpler than C++, *next* time, because *next* time I
need to use such a function, I can do this:
#include "my_c_solution's_header.h"
and link in the appropriate library, without bothering with all that extern
"C" nonsense. We call it "code re-use", and I recommend it to you.
Did you see my ";-)" ? This was humor, joke, not an argument.
I am not going to argument what first was an example (reading one line)
and second a joke ("extern C" makes C++ better).
I do not arge that C++ is better than C, neither the opposite.
But I desagree with "simpler is better". Turing-like langage would
have been the better solution with such argument. There is a
'good compromise' to find between the complexity of the tool and
the complexity of the problems.
Marc Boyer
.
- Follow-Ups:
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- References:
- Simplicity has a future
- From: jacob navia
- Re: Simplicity has a future
- From: Marc Boyer
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Marc Boyer
- Re: Simplicity has a future
- From: Richard Heathfield
- Simplicity has a future
- Prev by Date: Re: Simplicity has a future
- Next by Date: Re: Simplicity has a future
- Previous by thread: Re: Simplicity has a future
- Next by thread: Re: Simplicity has a future
- Index(es):
Relevant Pages
|