Re: If-then in Logic vs Programming
From: R-matrix (random_at_matrix.mx)
Date: 03/16/05
- Next message: Immortalist: "Re: WISDOM of Crowds (Iden?ify -Uare the missing data)"
- Previous message: feedbackdroids_at_yahoo.com: "Re: WISDOM of Crowds (Iden?ify -Uare the missing data)"
- In reply to: David C. Ullrich: "Re: If-then in Logic vs Programming"
- Next in thread: David C. Ullrich: "Re: If-then in Logic vs Programming"
- Reply: David C. Ullrich: "Re: If-then in Logic vs Programming"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Mar 2005 12:56:20 -0500
David C. Ullrich <ullrich@math.okstate.edu> wrote:
>> I've often heard professors and others say logic underlies computer
>>programming (and that certainly seems to be true to some extent),
>
>Of course that's true!
>
>>so
>>your response and others here are news to me.
>
>Huh? Saying that logic underlies computer programming doesn't
>imply that "if-then" in logic means exactly the same thing
>as "if-then" in a typical programming language.
If someone says "Logic underlies my statements" and then goes on to
say "If ..., then..." it would be reasonable to expect the statement
to adhere to logical standards (classic in this case) for the if-then.
But it's academic since it seems that George and Acme have both
shown, contrary to your assertions, that the if-then of classic logic
still exists in programming:
http://groups-beta.google.com/group/sci.logic/msg/603d29edb209ec95
http://groups-beta.google.com/group/sci.logic/msg/ad0baa3d67466e66
>> That comports with my observation of the difference but adds the
>>critical distinction between statements and commands, which you say
>>explains the difference, and I see your points, thanks! Can you
>>elaborate further? Like give examples of statements vs commands?
>
>We should note that one problem here is that the word "statement"
>is often used in programming to refer to things that are not
>statements at all, in the sense the word's usually used (and
>in the sense in which I'm using it here):
>
>print 'Hello World'
>
>is often called a "print statement" in programming, while in
>the sense we're using the words here it's a command, not a
>statement.
>
>here's an example of a statement: I find it hard to believe that
>you're having trouble with the difference between statements and
>commands.
One should not assume that the colloquial meaning of a term x
naturally translates to the use of term x within a formal system.
>
>here's an example of a command: don't assume that specific phrases
>like "if-then" mean the same thing in logic and in programming,
>just because they have similar spellings.
And don't assume that the colloquial meaning of "statement" and
"command" translate perfectly to their meaning in a formal system.
- Next message: Immortalist: "Re: WISDOM of Crowds (Iden?ify -Uare the missing data)"
- Previous message: feedbackdroids_at_yahoo.com: "Re: WISDOM of Crowds (Iden?ify -Uare the missing data)"
- In reply to: David C. Ullrich: "Re: If-then in Logic vs Programming"
- Next in thread: David C. Ullrich: "Re: If-then in Logic vs Programming"
- Reply: David C. Ullrich: "Re: If-then in Logic vs Programming"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|