| | |
Pascal
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
![]() |
The main reason Pascal is looked at like it is useless is because it has always had the image of being only for undergraduate students.
Students would learn Pascal, then "graduate" to "real" languages like C and Fortran when they got to graduate work.
They looked forward to those days when working in Pascal because it would mean they were getting near to graduation, then once working in C look down on Pascal because you are meant to look down on undergrad students and everything they do.
When those people entered the marketplace they took that attitude towards Pascal with them.
That's the situation today still, except universities have changed and are now teaching C++ and Java in undergraduate classes as well as graduate classes so Pascal is more or less left as a hobby language.
Personally I've not found Pascal to be restrictive at all. If you know it well enough you can do just about everything in it you can in a language like C, and the resulting code will be far more readable because Pascal (unlike C) enforces good programming practice reasonably well (which is why it was such a great language for teaching programming in the first place).
Students would learn Pascal, then "graduate" to "real" languages like C and Fortran when they got to graduate work.
They looked forward to those days when working in Pascal because it would mean they were getting near to graduation, then once working in C look down on Pascal because you are meant to look down on undergrad students and everything they do.
When those people entered the marketplace they took that attitude towards Pascal with them.
That's the situation today still, except universities have changed and are now teaching C++ and Java in undergraduate classes as well as graduate classes so Pascal is more or less left as a hobby language.
Personally I've not found Pascal to be restrictive at all. If you know it well enough you can do just about everything in it you can in a language like C, and the resulting code will be far more readable because Pascal (unlike C) enforces good programming practice reasonably well (which is why it was such a great language for teaching programming in the first place).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
C restrictive? In what way?
Apart from Assembly C is just about the least restrictive language you can find, you can do almost everything you want (if you know how of course). And for the very few things you might not be able to you can always link to Assembly modules.
Apart from Assembly C is just about the least restrictive language you can find, you can do almost everything you want (if you know how of course). And for the very few things you might not be able to you can always link to Assembly modules.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Aug 2005
Posts: 76
Reputation:
Solved Threads: 1
Pascal is an excellent language for people to begin programming with. Its simple and obvious syntax mean that students can concentrate on the algorithms and control of a program without getting bogged down in working out how to deal with a pointer overrunning the end of an array.
It was once described as "self documenting"; I don't think that's true, but it's just about there.
A lot of pseudo code in books is pretty much compilable Pascal.
It was once described as "self documenting"; I don't think that's true, but it's just about there.
A lot of pseudo code in books is pretty much compilable Pascal.
•
•
•
•
Originally Posted by jwenting
C restrictive? In what way?
Apart from Assembly C is just about the least restrictive language you can find, you can do almost everything you want (if you know how of course). And for the very few things you might not be able to you can always link to Assembly modules.
But I'm talking about things like functions as first-class objects, closures (which C++ sort-of has, being object-oriented), and the like. C does not have those. Most languages are restrictive. (Practically all are.)
That's not the language being restrictive, that's you not understanding the paradigms along which the language has been constructed.
You CAN do all that in C, but you'd have to use C to create a language parser or compiler that understood those things in a syntax of your choosing.
That's what was done when Stroustrup wrote C++, he used C to create a language to do things in ways that cannot be done in C directly, effectively allowing those things to be done (indirectly) in C anyway.
You CAN do all that in C, but you'd have to use C to create a language parser or compiler that understood those things in a syntax of your choosing.
That's what was done when Stroustrup wrote C++, he used C to create a language to do things in ways that cannot be done in C directly, effectively allowing those things to be done (indirectly) in C anyway.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Aug 2005
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Rashakil Fol
begin
Why would anybody want to use Pascal?
end;
You'll see it in Delphi, anyway, and I'm sure other people still use it. It's unpopular because it is a restrictive language, compared to others.
Dont you mean:
begin
writeln('Why would anybody want to use pascal?');
end.
:lol:
![]() |
Similar Threads
- Help With Pascal's Triangle in C++ (C++)
- Pascal starter. (Pascal and Delphi)
- Pseudo-Pascal Question: Need Help!! (Pascal and Delphi)
Other Threads in the Pascal and Delphi Forum
| Thread Tools | Search this Thread |






