Re: Help! GO TO and PERFORM THRU!




"Richard" <riplin@xxxxxxxxxxxx> wrote in message
news:1172774822.548078.321990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 1, 9:05 pm, "Roger While" <s...@xxxxxxxxxxxx> wrote:
"Richard" <rip...@xxxxxxxxxxxx> schrieb im
Newsbeitragnews:1172720964.193481.153810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

On Mar 1, 10:40 am, Howard Brazee <how...@xxxxxxxxxx> wrote:
On 28 Feb 2007 11:42:22 -0800, "Richard" <rip...@xxxxxxxxxxxx> wrote:

In Python you can't write code that looks confusing.

I very much doubt that.

You can write code that is wrong, but as long as you don't have tab
characters in the file (and my editors will expand tabs and will show
any in the file in colour) then what you see is what you get. You
won't get confused because the visual structure is not the logic
structure.

Untangling that last sentence would mean -
I WILL get confused because the visual structure IS the logic structure.

Hmm.

But that is because I was using english and not Python to express that
idea. Properly parenthesized it is:

You won't get ( confused because the visual structure is not the logic
structure).


I'm not convinced that this is "properly parenthesized"... :-) It still
contains the extraneous NOT which is causing the problem...


Quick Boolean analysis... (condition IMPLIES state)

(visual structure = logical structure) -> NOT confusing
NOT (visual structure = logical stucture) -> confusing

A -> B'
A' -> B

(You won't get confused ) = B' ...because...(the visual structure is NOT not
the logic structure). = NOT B' = B

"You won't get confused, because the visual structure is the logical
structure." (Simplest possible form)

Logically valid alternative, conveying idea of possible risk...

"You won't get confused (as you would if the visual structure was NOT the
logical structure) because the visual structure IS the logical structure."

Python has visual structure = logical structure
therefore...
Python -> NOT confusing

BTW, I read a couple of articles about Python last night and it looks quite
exciting. Some American high schools are adopting it because of its
simplicity and elegance, using it so students can develop useful
applications for the school and as a "precursor" to learning C++ at
university.

I intend to get into it as soon as I have the current project finished.

Pete.


.



Relevant Pages

  • Re: Help! GO TO and PERFORM THRU!
    ... I WILL get confused because the visual structure IS the logic structure. ... NOT -> confusing ... Python will not do that. ...
    (comp.lang.cobol)
  • Re: Help! GO TO and PERFORM THRU!
    ... I WILL get confused because the visual structure IS the logic ... NOT -> confusing ... logical structure) because the visual structure IS the logical structure." ... Python has visual structure = logical structure ...
    (comp.lang.cobol)
  • Re: Help! GO TO and PERFORM THRU!
    ... You can write code that is wrong, but as long as you don't have tab ... characters in the file (and my editors will expand tabs and will show ... I WILL get confused because the visual structure IS the logic structure. ...
    (comp.lang.cobol)