Hacker News new | ask | show | jobs
by florians 258 days ago
This is entertaining. I learned Turbo Pascal in high school.

What I like from watching it again: the aspect of structured programming.

It’s quite refreshing to see a language that doesn’t rely so much on brackets.

It even got away without syntax highlighting by using all uppercase REPEAT, BEGIN, END or capitalising function calls.

Thanks for sharing!

3 comments

People tend to complain about excessive verbosity of some languages. However today with completion in every editor this should not be an issue, so why not use Pascal?
The problem with verbosity isn’t writing the boilerplate. It’s adding to the mental overhead of reading it
I'll claim without proof that if you are used to the language the mental overhead of "begin" and "end" is not bigger than for { and }.
I also learned Turbo Pascal in high school, it's quite a trip returning to that time. I'm pretty sure that was the last year they taught Pascal at that school, and after that.... Java. Well, it was the 90s, I guess.
Capitalization is ignored by the compiler. So you can call it REPEAT, repeat, rEpEaT and so on. Same for variable names, functions, etc.
Which is something that can cause annoying bugs when 2 identifiers that are "obviously" different when you see them in CamelCase are interpreted as identical by the compiler…