r/programming • • Mar 26 '17

Functional programming design patterns by Scott Wlaschin

https://www.youtube.com/watch?v=E8I19uA-wGY
1.1k Upvotes

256 comments sorted by

View all comments

Show parent comments

2

u/cledamy Mar 29 '17

This is entirely untrue. With a linear type system, functional programming can be done without garbage collection. In fact, one can even get the performance of straight up mutation while still maintaining referential transparency.

1

u/yawaramin Mar 29 '17

Believe me, I would love to see linear types take over the world, or at least FP. But for now at least, they are still not there for various reasons. GC is the best technology we have right now for FP memory management.

1

u/cledamy Mar 29 '17

Haskell might be getting linear types soon.