[Coco] History repeats itself
Wayne Campbell
asa.rand at gmail.com
Sat Jan 9 21:55:14 EST 2016
On Sat, Jan 9, 2016 at 5:35 PM, James Jones <jejones3141 at gmail.com> wrote:
...
>
> In a procedure that included EXITIF statements, I did not originally follow
> the indentation that BASIC09 imposes on its source listings.
>
> In the revision, I will keep to the way BASIC09 does it, because I know
> better now.
>
> One thing about the way Basic09 formats listings threw me for the longest
time, until I realized that it was being done in order to let the
programmer know what level it applied to. That is the EXITIF/ENDEXIT
statements. Follow:
REPEAT
a:=a+1
...
EXITIF <expression>
...
ENDEXIT
...
UNTIL <expression>
I always felt like the EXITIF and ENDEXIT should be indented. Then one day
I realized it was this way so I would know that the EXITIF applied to the
REPEAT, and not something else inside the loop. While I can appreciate it
now, it drove me batty for years.
Recently, I've taken up the Go programming language.
What I am hearing makes me like this language, but I am not yet ready to
tackle learning another language.
Wayne
The Structure of I-Code
http://www.cocopedia.com/wiki/index.php/The_Structure_of_I-Code
decode
http://cococoding.com/wayne/
More information about the Coco
mailing list