We can go further, I think it's impossible to prevent memory leaks in a general purpose language
hairyballs
joined 1 year ago
The Elm compiler
I was so lucky in the interview for my current job: I'm working on a product with a big networking component, and I was asked to write an echo server with low level components. That was maybe the second time I had a test related to the job.
It's much easier to work with streams of untyped data in a weakly typed language.
And here you're only talking about a subset of memory leaks, by inaccessible memory. You can also leak memory by pushing new elements in a channel while never reading them for example.