Hacker News new | ask | show | jobs
by giovannibonetti 91 days ago
Maybe learn Rust as a middle ground between ML and C, then? It has sum types like ML and teaches you memory management like C.
1 comments

The allure of Rust is that you don’t have to manually manage memory.

Lifetimes are a compiler safety abstraction and mostly unrelated with how the computer runs your program.

Learning a language like C helps to understand why lifetime annotations are needed and how the compiler uses them.