3 ms·
> Yes the only "weird" thing in pascal I guess you forgot about the semicolons which must or must not be there depending on location. And the final dot. And,
by wott 5y ago
> Yes the only "weird" thing in pascal
I guess you forgot about the semicolons which must or must not be there depending on location. And the final dot.
And, if we move a bit away from pure syntax, strings, even modern ones, which start at 1 for backward compatibility reasons with the original very limited Pascal strings, while dynamic array start at 0 (and original limited pascal arrays start wherever you like).
- Tozen 5y agoSemicolons are separators in Pascal, not terminators like in C/C++. The context of usage is different. The final dot is clarifying the end of the program or unit. It also makes a more clear distinction between the main body or subroutine of the program versus other functions and procedures that are only component parts. I don't think people are saying that Pascal is a perfect language, as none are, but rather it's an easier to understand and read language. Many teachers would agree with that assessment.