[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ equivalent to spaghetti code
From: |
peter koch |
Subject: |
Re: C++ equivalent to spaghetti code |
Date: |
Sun, 20 Jul 2008 14:30:25 -0700 (PDT) |
User-agent: |
G2/1.0 |
On 20 Jul., 21:59, James Kanze <james.ka...@gmail.com> wrote:
> On Jul 20, 10:50 am, "Alf P. Steinbach" <al...@start.no> wrote:
>
> > * James Kanze:
> > > C was never really a good general purpose language. It was
> > > never used (nor even usable) in commercial software, for
> > > example.
> > I'm not sure that statement is valid.
> > It would be very surprising, to say the least, if no or just a
> > very few commercial applications were written in C.
>
> There are certainly a few. Way back when, however, the X/Open
> group proposed standardizing a form of Cobol (under Unix!)
> because C was felt to be unusable for business applications.
>
> At least certain types of business applications require some
> sort of decimal type. If the language doesn't have it built in
> (as Cobol and PL-1 did), and it doesn't have operator
> overloading, expressions quickly become unreadable. For those
> applications, at least, if the language doesn't have a built-in
> decimal type, and it doesn't have operator overloading, then
> it's really unusable for those applications (although you'll
> doubtlessly find some masocists doing it).
>
That was the case for "my" financial application. It had decimal-based
arithmetic, and writing expressions in C was
add(multiply(a,b),divide(c,d)) instead of a*b+ c/d. But as a lot of
the high-level code was written in our own, interpreted language
anyway it did not matter so much.
/Peter
- Re: C++ equivalent to spaghetti code, (continued)
- Re: C++ equivalent to spaghetti code, fnegroni, 2008/07/17
- Re: C++ equivalent to spaghetti code, Wolfgang Draxinger, 2008/07/17
- Re: C++ equivalent to spaghetti code, Tim Smith, 2008/07/18
- Re: C++ equivalent to spaghetti code, terminator, 2008/07/19
- Re: C++ equivalent to spaghetti code, Juha Nieminen, 2008/07/19
- Re: C++ equivalent to spaghetti code, James Kanze, 2008/07/20
- Re: C++ equivalent to spaghetti code, Alf P. Steinbach, 2008/07/20
- Re: C++ equivalent to spaghetti code, Alf P. Steinbach, 2008/07/20
- Re: C++ equivalent to spaghetti code, lawrence . jones, 2008/07/20
- Re: C++ equivalent to spaghetti code, James Kanze, 2008/07/20
- Re: C++ equivalent to spaghetti code,
peter koch <=
- Re: C++ equivalent to spaghetti code, Flash Gordon, 2008/07/20
- Re: C++ equivalent to spaghetti code, Richard Heathfield, 2008/07/20
- Re: C++ equivalent to spaghetti code, David Kastrup, 2008/07/20
- Re: C++ equivalent to spaghetti code, James Kanze, 2008/07/20
- Re: C++ equivalent to spaghetti code, Richard Heathfield, 2008/07/20
- Re: C++ equivalent to spaghetti code, Willem, 2008/07/20
- Re: C++ equivalent to spaghetti code, lawrence . jones, 2008/07/21
- Re: C++ equivalent to spaghetti code, Richard Heathfield, 2008/07/21
- Re: C++ equivalent to spaghetti code, Richard Harter, 2008/07/22
- Re: C++ equivalent to spaghetti code, Willem, 2008/07/21