News for hackers. Stuff that matters.
Re:Functional programming is not popular because it is weird... by benibela on Tuesday September 14, 2021 @08:01AM (#28523383)
I have always used Pascal for that

But no one else does

Re:Functional programming is not popular because it is weird... by GuuD on Tuesday September 14, 2021 @08:44AM (#28523874)
Go is just shitty Pascal, change my mind.

On a more serious note. I decided to read Delphi documentation recently because I’m old enough to hear a lot about it, but not quite old enough to write anything in it. It had discriminated unions. It did! I can’t imagine my life without them, I write stuff exclusively in Ocaml-like languages, so the only question that I have in my mind is “how the hell we managed to go backwards?” It’s so weird.

Re:Functional programming is not popular because it is weird... by zeroc8 on Wednesday September 15, 2021 @02:38AM (#28535956)
Go has some restrictions, but all in all it's a great little pragmatic language, which solves a lot of practical problems (utf-8 strings, concurrency, garbage collection, cross compilation, single binary deployment, performance, readability) and which I can easily keep in my head as opposed to most of the other languages I've used in my career.

In that way it's like a Delphi for the modern world.

Re:Functional programming is not popular because it is weird... by CRConrad on Wednesday September 15, 2021 @07:40PM (#28545927)
No, Free Pascal is Delphi for the modern world.
Re:Functional programming is not popular because it is weird... by CRConrad on Wednesday September 15, 2021 @07:38PM (#28545910)
Of course it had. Turbo Pascal had, AFAICR. (Probably because, at a guess, Wirth-standard Pascal did; though I'm less certain about that.)