Y
Hacker News
new
|
ask
|
show
|
jobs
by
timbit42
1035 days ago
Modula-2, Ada and Oberon removed most of the BEGINs except the one between variable declaration and the start of the code.
1 comments
fuzztester
1033 days ago
But they kept the ENDs?
link
timbit42
1033 days ago
The BEGINs were replace by THEN (for IFs) and DO (for WHILEs and FORs). They still need something to denote the ENDs. Instead of saying "THEN BEGIN" or "DO BEGIN", you can drop the BEGIN and just assume it's there.
link
fuzztester
1033 days ago
Okay, a bit like Ruby, THEN.
IF I had to BEGIN a comment, I would say that FOR a WHILE I thought it was the END.
# ;)
link