News for hackers. Stuff that matters.
Re:FreePascal and Lazarus Foundation by ebbv on Wednesday July 06, 2016 @05:06PM (#12045909)
I don't think it's just perceived uncoolness. I learned Pascal in high school AP CompSci and I've always found it's syntax to be ugly and inelegant. But I learned C first so maybe that's why.
Re:FreePascal and Lazarus Foundation by cvwright on Wednesday July 06, 2016 @05:31PM (#12046036)
I learned Pascal in high school, too. On a 25 MHz 486 with 8 MB of RAM -- woo!

I actually quite liked it. I thought Pascal provided the right level of hand-holding necessary for a newbie programmer. I was probably able to pick up C more quickly the next year because of the solid foundation from Pascal.

Re:FreePascal and Lazarus Foundation by int_19h on Wednesday July 06, 2016 @08:15PM (#12046742)
Pascal is unnecessary verbose, even in its own family. Even Modula-2, where the most prominent change that is immediately visible is that you don't have to say "begin" so many times, is noticeably better.

It's really too bad about Modula-2. It was a very nice language, comparatively speaking, and it should have been what Pascal eventually became through its dialects (notably Apple's and Borland's).

Re:FreePascal and Lazarus Foundation by claystu on Thursday July 07, 2016 @09:18AM (#12049079)
Did you ever look at Oberon?
Re:FreePascal and Lazarus Foundation by leledumbo on Thursday July 07, 2016 @09:34AM (#12049186)
It's what Pascal should have become IMHO. Base syntax: case-insensitive Oberon. Extensions: Object Pascal features. Now that's heaven. If only we don't need to maintain backward compatibility...
Re:FreePascal and Lazarus Foundation by claystu on Friday July 08, 2016 @08:51AM (#12055088)
I wonder how hard it would be to poach the best parts of the GUI system from Lazarus and put it into a Turbo Oberon system.
Re:FreePascal and Lazarus Foundation by int_19h on Saturday July 09, 2016 @04:51AM (#12060712)
Oberon is also nice!

Modula-2, though, has a nice trait in that it has exactly the feature set necessary for "better C", and nothing more.

Re:FreePascal and Lazarus Foundation by mamcx on Wednesday July 06, 2016 @07:19PM (#12046515)
Is interesting that people that "like" the c-like syntax consider pascal "ugly". The opposite is also true.
Re:FreePascal and Lazarus Foundation by AnimalMuppet on Wednesday July 06, 2016 @08:12PM (#12046732)
I've used both professionally. I'd say that "begin" and "end" may be clearer than "{" and "}", but less typing wins when you're writing a lot of code.

Writing "if" statements without short-circuit operators is both tedious and error-prone.

So, yeah, I like the C syntax. It's not a question of "ugly", though. Pascal is tedious. It's more work to write. And, of the kinds of tedious I've complained about here, it's not tedious in a way that gets you more correct code. It's just tedious in a way that takes effort and saps your energy for stuff that doesn't matter.

Re:FreePascal and Lazarus Foundation by clouddrover on Wednesday July 06, 2016 @09:47PM (#12047027)
> Writing "if" statements without short-circuit operators is both tedious and error-prone.

By default both Delphi and Free Pascal perform short-circuit evaluation of boolean operators. The Delphi and Free Pascal documentation has more:

http://docwiki.embarcadero.com/RADStudio/Berlin/en/Boolean_s...

http://docwiki.embarcadero.com/RADStudio/Berlin/en/Expressio...

http://www.freepascal.org/docs-html/current/ref/refsu48.html...

Re:FreePascal and Lazarus Foundation by AnimalMuppet on Thursday July 07, 2016 @12:09PM (#12050205)
Ah. When I used Pascal, it was back in the old days. The single most horrific problem was that the size of an array was part of the type of the array, so it was literally impossible to use variable-sized arrays. But I didn't whine about that one, because I knew that it was fixed as early as Turbo Pascal.

grumble grumble kids get off my lawn...

Re:FreePascal and Lazarus Foundation by e12e on Thursday July 07, 2016 @10:22PM (#12053261)
I think this is an important point - I had a year of Object Pascal as introductory programming by accident sort of - as I spent a year at another college. It was the last year they continued to use Object Pascal (moving on to Java, I believe). Having had some exposure to Java, C and assembler before - I felt Object Pascal made much more sense than C. Meaningfully higher level than assembly, and much easier to grasp the difference between reference/value/address than in C. I know what * and & means in C, but it just felt more natural in Pascal (it's been so long that I don't remember the particularity of the syntax/semantics ...).

Basic "original" Pascal is very much a teaching language first, and a "real" language second. But the small tweaks (or big, depending on your point of view) to Object Pascal/the default dialect for Free Pascal makes a world of difference IMNHO. So, I think someone can both agree that early Pascal (or plain Pascal) is uncomfortably verbose and rigid, while at the same time think that modern Free/Object Pascal is a great language to work with.

I wonder if there's anyone working on a Pascal back-end for Nim? In some ways is seems like a "waste" that the default target is C.

Re:FreePascal and Lazarus Foundation by mamcx on Thursday July 07, 2016 @06:55PM (#12052624)
> less typing wins when you're writing a lot of code.

This probably is part of the reasons: People that optimize for write instead of reading.

However, after python I consider "begin/end" marks redundant with indentation...

But then some people hate clear code, and prefer mess with the layout!

Re:FreePascal and Lazarus Foundation by eggy on Wednesday July 06, 2016 @08:32PM (#12046800)
Ruby seems to be quoted as an elegant language, and it certainly has its followers, and the number of Ends (vs. Begins in Pascal) are just as numerous, yet this is never cited.

Syntax is definitely a personal preference. I know multiple PLs from different families, and even then, I still prefer a certain syntax.

Re:FreePascal and Lazarus Foundation by dragonwriter on Thursday July 07, 2016 @12:07PM (#12050187)
> Ruby seems to be quoted as an elegant language, and it certainly has its followers, and the number of Ends (vs. Begins in Pascal) are just as numerous, yet this is never cited.

Well, except that the cascade of ends is a frequent complaint about Ruby, rather than something "never cited".

Re:FreePascal and Lazarus Foundation by ebbv on Wednesday July 06, 2016 @07:29PM (#12046563)
It's true. I view syntax preference kind of like car preference. Very personal and some people have deep reasons and others don't.