3 Simple Questions About Python/IDLE
Steve Holden
steve at holdenweb.com
Thu Sep 7 15:06:30 EDT 2006
Dennis Lee Bieber wrote:
> On 7 Sep 2006 06:53:44 -0700, "Omar" <outstretchedarm at hotmail.com>
> declaimed the following in comp.lang.python:
>
>
>>1) why don't python / idle use numbered lines in their scripting, like
>>basic? how do you keep track of large batches of code without them?
>>
>
> Because BASIC was created in the days of paper teletypes with
> minimal editors. In BASIC, you would correct a line by retyping it with
> the line number and the interpreter was responsible for "reordering" the
> lines in memory. You could actually type a program in from last line to
> first (ie, upside down) and it would run.
>
> NO other language that I know of uses line numbers to control source
> code order. Heck, Visual BASIC doesn't use line numbers either (I don't
> recall if AmigaBASIC required them either).
>
Well, there was Focal. Focal used floating-point line numbering, making
it much easier to squeeze extra lines in at any point int he program.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list