Its actually not a bad recursive definition of addition, if you need to define it in terms of increments and decrements. The obvious thing is of course it makes for a really inefficient computer program, that is on a real processor.
If you use a really simple language that doesn't support addition, this works. Although, you would have to have pretty idealized functional language to support recursion but not addition.
@maddog6: Sorry, I should have clarified that this was back in the mainframe days when IBM dominated the mainframe market and supplied the software.
Back in the 1970's I worked for a big UK retail bank. One of the senior IT managers came back from an IBM presentation about DB2 relational database, and said we ought to convert from our highly-tailored file access system. The quick assessment was that we would have to triple our hardware - apart from rewriting the software.
Actually, an IBM expert on their sort package came to visit once. "Oh, yeah," the bank man said, "We use it to sort 2 million records every night." IBM man was horrified: "But it was only designed to handle 100K records! You should write your own sort!"
Maybe it's just as well that Microsoft don't sell much hardware.
Today we just have so much power on the desktop that we have to run screensavers to keep our computers from getting bored.
jevans4949 wrote:@maddog6: Sorry, I should have clarified that this was back in the mainframe days when IBM dominated the mainframe market and supplied the software.
Yes, back when they actually manufactured those things here (in NY/US IIRC), the 'software' end was so not what IBM wanted to do - but was an 'evil necessity' and why M$ DOS dominated the 'personal' erm 'toy' markets.
Oh the hubris.
edit:
for clarity, my father shared a few stories of his early years at GM and their IBM/EDS calamity (he worked on the first IBM installed for GM in Detroit MI IIRC - or Milford MI proving grounds back in the 60's).
He survived in GM being more of an engineer than a programmer. So this was his sentiment I expressed and not really from my personal experiences and its probably skewed more than a little. ;)