R
Richard Bos
Martin Eisenberg said:Like many I was taught programming in school using TP, and I think I
was taught well. What lost features are you referring to?
Mostly strictness. In order to become a borderline useful language, it
had to add some features. Now, the thing which made standard Pascal so
useful for teaching was that, being limited in what it would allow, it
forced you to program structurally. The extent to which it did this was
an irritant in real use, but very applicable in teaching.
To name but one example, in Pascal, it is not possible to jump out of a
function or procedure. You _must_ follow the one entrance-one exit
philosophy. This is, of course, unpleasant to use, but it does force the
learner to be structured approach. Borland added an "exit" keyword which
circumvented this, like C's return keyword. Very useful for the normal
programmer, but not good for someone who hasn't had clarity of structure
bashed into him yet.
Of course, it's perfectly possible to learn programming using Turbo
Pascal, just as it's perfectly possible to do so using C. It's just that
you have to exert control over yourself - or have a good teacher - in
order not to pick up bad habits just because you can. With real Pascal,
this is made a lot easier for you, simply because many of the hacks and
spaghetti junctions you can create in more real-world-useful languages
aren't possible in Pascal in the first place.
Richard