3 ms·
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! Everythin
by Stratoscope 5y ago
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://en.wikipedia.org/wiki/BLISS
https://www2.cs.arizona.edu/classes/cs520/spring06/bliss.pdf https://www2.cs.arizona.edu/classes/cs520/spring06/bliss.pdf
- fancy_hammer 5y agoElixir possibly has some of this flavour. If and switch are both expressions and return values. I dig it.
- kaba0 5y agoI think it is that way in almost every FP language (eg. Scala, Haskell, Kotlin, etc)
- CRConrad 5y ago> 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.