Re: [OT] General purpose Expression Parser
- From: Ioannis Vranos <ivranos@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 21 Mar 2008 18:24:26 +0200
Richard Heathfield wrote:
Ioannis Vranos said:Ben Pfaff wrote:Ioannis Vranos <ivranos@xxxxxxxxxxxxxxxxxxxxxxxxx> writes:So, whatever we can use in C++ needs not be provided in C. In other
I think template functions and structs could be introduced inYou can already use them in C++. There is no need for them in C.
C.
words you are saying that C is obsolete.
CUSTOMER: "I'd like a knife and fork, please."
WAITER: "Here you are, sir."
CUSTOMER: "Wait a moment - this fork has no sharp edge."
WAITER: "That's right."
CUSTOMER: "But this knife has a lovely edge on it. Why can't the fork be like that?"
WAITER: "Because it's a fork."
CUSTOMER: "This knife has serrations along the blade to improve its grip during the cut. Why can't the fork have serrations?"
WAITER: "Because it's a fork. If you want to cut, use the knife."
CUSTOMER: "So what you're saying is that the fork is useless? I don't need it?"
WAITER: "No, what I'm saying is that I don't get paid enough to deal with people like you."
This fictional conversation has nothing to do with the value of function/struct templates in terms of *elegance (simplicity)*, *efficiency*, *type safety* as a newer and better tool, replacing generic functions currently implemented with void * and conditions, and macros.
As an example of C++ features adoption, consider function-prototypes adopted and provided in C89 as well as other features I do not remember now.
.
- Follow-Ups:
- Re: General purpose Expression Parser
- From: user923005
- Re: [OT] General purpose Expression Parser
- From: CBFalconer
- Re: General purpose Expression Parser
- References:
- General purpose Expression Parser
- From: Dexter
- Re: [OT] General purpose Expression Parser
- From: Ioannis Vranos
- Re: [OT] General purpose Expression Parser
- From: Ian Collins
- Re: [OT] General purpose Expression Parser
- From: Ioannis Vranos
- Re: [OT] General purpose Expression Parser
- From: Ben Pfaff
- Re: [OT] General purpose Expression Parser
- From: Ioannis Vranos
- Re: [OT] General purpose Expression Parser
- From: Richard Heathfield
- General purpose Expression Parser
- Prev by Date: Re: abort at the end of data transfer
- Next by Date: Re: simple PRNG?
- Previous by thread: Re: [OT] General purpose Expression Parser
- Next by thread: Re: [OT] General purpose Expression Parser
- Index(es):
Relevant Pages
|