Posts: 4,648
Threads: 1,495
Joined: Sep 2016
is there any case in python where a statement ends in : and the next line does not have to be indented or there is a valid indent where the previous line did not end with a : character? i am curious because it seems to me that these two things are a redundant means to begin a deeper level block. i've been thinking about making my own parser of a special code and pondering if i need both in the syntax, or if it is a useful redundancy to have in a python-like syntax.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,648
Threads: 1,495
Joined: Sep 2016
did
bdfl
write anything about
why the colon is a part of the language syntax? i recall a friend showing me a language way back around 1978 that used indentation to nest new blocks and unindentation (undentation) to end a block. i do not recall if it had colons.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,648
Threads: 1,495
Joined: Sep 2016
ABC obviously had to exist before Python. now i wonder if ABC was the language my friend showed me back around 1978. but i am still thinking of making a syntax without colons and a parser for it. maybe it should allow colons as optional because there will be some people typing a colon by habit.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,648
Threads: 1,495
Joined: Sep 2016
i looked around there, but i didn't see a date for creation of ABC.
i do remember that my friend described it as a language well suited for beginners to learn to program with. he wanted to know if i could write a compiler or interpreter for it. we both worked in the school's main computer center giving programming help to users (both students and faculty) of the IBM 370/155 mainframe.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.