Yumisekai wrote:
Also in Python I don't always have to declare variables in the beginning of the program, unlike Pascal, which I find comfortable.
One of the many things I like about Pascal is that without deliberately writing code to circumvent it, it's practically impossible to make erroneous type assignments: the language is built to discourage it and the compiler prevents it, yet mechanisms are still provided (in modern Pascals, anyway) to allow pulling typecasting tricks - but in a structured manner.
Hence, types and variables etc. are all defined up-front; nothing is assumed - or
allowed to be assumed.
All of this forces a greater understanding of what's being manipulated and a better, more precise awareness of program operation.
Other language compilers make a 'best guess' at what the programmer intended which to my way of thinking is risky at best and just plain wrong at worst - I'd rather rely on a compiler generating binaries from precisely what I wrote than trust the whims of its implementation.
Quote:
I always hated to put semi-colons at the end of each line which, in my point of view, find unecessary.
Funny; I find the same with Python's method of indentation-as-block-definition: it's bizarre. A single semi-colon in Pascal flows as naturally as punctuation, and in Pascal I indent however I choose because it's visually useful (and pretty!) but in Python I'm forced to indent how it expects.
So I guess all languages will have their little syntactical quirks, but I'll always recommend one which was designed with the purpose of teaching good practices.
That will help keep the programmer in control and tame some of the excesses found in other languages.
_________________
Giraffe: a ruminant with a view.