|
|
|
|
|
by eru
2227 days ago
|
|
FP ideas have been seeping into the mainstream for quite some time now. The oldest: GC was originally invented for Lisp. It's common now. Type inference was big in FP before it made the jump to language like Java or C++ much more recently. Generics were a natural idea in a typed FP context. Mainstream languages got them, now. I'm looking forward to algebraic data types becoming really common. (The simplest explanation is that they are C-style unions with tags to tell you which case you are in. The compiler enforces that the tags correspond to how you use them.) Some mainstream languages are starting to add them. |
|
LISP was so ahead of its time, its parents still haven't met yet. Not very FP, but another gem from SBCL: saving and restoring program state for later use. Now there's the CRIU [0] project for doing this with Linux and Docker containers.
> I'm looking forward to algebraic data types becoming really common.
I'm not too familiar with the full scope of algebraic data types. Wondering: does Typescript have this or is it still missing a few key components? Really like how it has Union types, which I wish Scala would have.
[0] https://www.youtube.com/watch?v=LrHW7Vvbie4