News for hackers. Stuff that matters.
Re:Functional programming is not popular because it is weird... by pjmlp on Tuesday September 14, 2021 @05:25AM (#28522207)
UNIX became popular because it was free beer with source tapes.

Had UNIX been written in PL/I, Mesa or BLISS, those languages would be "C" today.

Re:Functional programming is not popular because it is weird... by Stratoscope on Tuesday September 14, 2021 @06:09AM (#28522510)
Oh, how I miss BLISS. It was the first language I learned that got rid of the silly distinction between statements and expressions. What a revelation! Everything was an expression. Everything returned a value. I guess a bit like Ruby, but 40 years ago.

https://en.wikipedia.org/wiki/BLISS

https://www2.cs.arizona.edu/classes/cs520/spring06/bliss.pdf

Re:Functional programming is not popular because it is weird... by CRConrad on Wednesday September 15, 2021 @07:35PM (#28545883)
> Everything returned a value. I guess a bit like Ruby

Like C, isn't it? Assignments return values! Still feels weird AF to those of us who started on BASIC and Pascal.

Re:Functional programming is not popular because it is weird... by fancy_hammer on Tuesday September 14, 2021 @06:46AM (#28522750)
Elixir possibly has some of this flavour. If and switch are both expressions and return values. I dig it.
Re:Functional programming is not popular because it is weird... by kaba0 on Wednesday September 15, 2021 @01:55AM (#28535726)
I think it is that way in almost every FP language (eg. Scala, Haskell, Kotlin, etc)