* * *

Author Topic: Why Pascal?  (Read 1970 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: 5797
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 !

metis

  • Full Member
  • ***
  • Posts: 110
Re: Why Pascal?
« Reply #19 on: April 23, 2018, 04:25:48 pm »
@fcu

Quote
better than scrolling every time to var region !
Relax Your Forefinger, and jump instead:
Jump to the Var with <Alt+Up>, then jump back with <Ctrl+H>;)


@All the others
I love Lazarus and FPC.  :-*
It installs fast and w/o Problems (at least with me: WinXP SP3).
It is so easy to use, compiles and runs fast, and is full with useful Features, ...

Question:
Afaik, the first MacOs's had been written with Pascal.
-> Does anybody know, why, and why Pascal was left ?

Life could be so easy, if there weren't those f*** Details.

Phil

  • Hero Member
  • *****
  • Posts: 2557
Re: Why Pascal?
« Reply #20 on: April 23, 2018, 04:30:05 pm »

Afaik, the first MacOs's had been written with Pascal.
-> Does anybody know, why, and why Pascal was left ?

https://en.wikipedia.org/wiki/Object_Pascal#Early_history_at_Apple

RAW

  • Hero Member
  • *****
  • Posts: 648
Re: Why Pascal?
« Reply #21 on: April 23, 2018, 08:50:52 pm »
Quote
@All the others
I love Lazarus and FPC.  :-*
It installs fast and w/o Problems (at least with me: WinXP SP3).
It is so easy to use, compiles and runs fast, and is full with useful Features, ...

YES !!!! DEFINITELY !!!!

I really like the SECONDARY INSTALLATION...  :)
Windows 7 Pro (x64 Sp1) And Windows XP Pro (x86 Sp3) - LAZARUS 1.8.2 FPC 3.0.4 // 1.7 FPC 3.1.1

 

Recent

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