* * *

Author Topic: Why Pascal?  (Read 1726 times)

tverweij

  • Guest
Re: Why Pascal?
« Reply #15 on: April 12, 2018, 11:55:50 am »
- structured
- strict
- readable
- case insensitive
- full pointer support
- full OOP (although multiple inheritance is missing)


Thaddy

  • Hero Member
  • *****
  • Posts: 5782
Re: Why Pascal?
« Reply #16 on: April 12, 2018, 12:57:13 pm »
And a very strict separation of declaration and implementation throughout the language, which makes it not only easier to read but also less prone to errors than C like languages that allow e.g. variable declarations within a code block... even on the fly.... which is silly although it "saves time"..<think!  >:D >.
A variable declaration is much more readable and strict because of that separation. It prevents errors although it may seem more verbose. Same goes for types. Same goes for clumsy enumerations in other languages. Same goes for - native - sets.

Btw: multiple inheritance is supported through interfaces...
There are more languages with these strict features. Almost all of them are Wirthian languages which includes imo also ADA. Although COBOL has many of the same features I mentioned.
recommends {$macro on}{$define Silly:=ObjFpc}

segfault

  • New member
  • *
  • Posts: 42
Re: Why Pascal?
« Reply #17 on: April 15, 2018, 08:27:19 pm »
Same goes for - native - sets.

I think this is a much under-utilised and under-appreciated feature of the language. Well thought out use of sets can simplify many programs enormously and also makes them easier to read. I know you can implement them using bit vectors in pretty much any language, but how often would you actually do it? Having them native is a big plus.

fcu

  • New member
  • *
  • Posts: 13
Re: Why Pascal?
« Reply #18 on: April 15, 2018, 10:18:24 pm »
variable declarations within a code block... even on the fly.... which is silly although it "saves time"..<think!  >:D >.

i find it very useful , better than scrolling every time to var region !

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus