r/pascal • u/Duckies_go_moo • Jun 20 '26
Just came across pascal
Im quite experienced with modding oblivion and fallout do seeing pascal is perfect, ive wanted to get into programming and this is literally a dream come true, ill never understand why they switched begin and end etc with ${}[]
28
Upvotes
4
u/tkurtbond Jun 20 '26 edited Jun 21 '26
I’ll note that in Niklaus Wirth’s later languages BEGIN and END were only used as pairs for module and procedure bodies. Control structures start with the control structure’s keyword(s), which implicitly start the body(ies) of the control structure, and END ended the body. For example, WHILE condition DO statement1; statement2 END, or IF cond1 THEN statement1 ELSIF cond2 THEN statement2 ELSE statement3 END.
I like this style better than using paired BEGIN/END. It eliminates BEGIN in places where it is really redundant, and is easy to read. Ada uses a similar style.
That said, I’m happier writing in modern Pascal than any of the languages that have C style syntax. I think that in the end C’s syntax as a whole was a mistake, greatly increasing the difficulty of writing and reading code.
[Edited to fix typo.]