News for hackers. Stuff that matters.
Re:Time safety is more important than memory safety by dana321 on Thursday February 13, 2020 @07:55PM (#22322969)
You would probably like go, its much like pascal. And it has libraries for everything!
Re:Time safety is more important than memory safety by pjmlp on Friday February 14, 2020 @02:57AM (#22324786)
Except, check the language reference for FreePascal and Go, regarding language features.

And Go still doesn't have anything comparable to Lazarus, which isn't as feature rich as Delphi/RemObjects.

Re:Time safety is more important than memory safety by Akira1364 on Saturday February 15, 2020 @08:13PM (#22339194)
Two things:

A) The person you're replying to is simply quite wrong about the amount of Pascal libraries available. There is no "domain of interest" I can think of that does not have at least one "defacto" library for it.

More commonly though there's four, five, six or more libraries for any given thing to choose from, which often turn out to each have specific strengths such that you may very well end up using more than one of them in your project.

B) They would almost certainly probably not like Go. Object Pascal as implemented by Free Pascal is a language that effectively embraces with open arms almost all of the things that Go actively avoids: for example, traditional (single) inheritance, operator overloading, both function overloading and generics, and so on and so forth.

As far as inheritance specifically, the general indifferent attitudes towards it of "there are definitely times and places where it makes more sense than anything else to use" amongst Pascal programmers are in my opinion basically a direct result of the fact that "bad experiences the compiler developers personally had with inheritance as specifically implemented by C++" are NOT something that actively factors into their decision making process or something that they really think about or care about at all (or more broadly, something that users of the compiler generally think about or care about at all).

This sets it quite far apart from other languages such as Rust, where "things C and C++ arguably did wrong" are in fact heavily influential and both thought about and discussed regularly.

Re:Time safety is more important than memory safety by flavio81 on Friday February 14, 2020 @09:38AM (#22326896)
Last time I checked, Pascal has generics and exception handling.
Re:Time safety is more important than memory safety by ratboy666 on Saturday February 15, 2020 @11:27PM (#22339776)
Pascal has neither generics nor exception handling. At least, with reference to ISO Pascal.
Re:Time safety is more important than memory safety by benibela on Monday February 17, 2020 @06:41PM (#22352045)
Nobody refers to ISO Pascal anymore. It is either Delphi or FreePascal.