Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Denommus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
Denommus
12y ago
Besides the object system, OCaml has a powerful module system, with first-class modules and functors (which is already basically very equivalent to what you'd expect from objects). Besides that, objects have structural typing, and you
2.
▲
by
Denommus
12y ago
Yes, that's what I meant, I don't know why I got it wrong.
3.
▲
by
Denommus
12y ago
OCaml also has both, and its object system is probably more powerful.
4.
▲
by
Denommus
12y ago
Functional Programming is just composing a program with pure functions, nothing else. Immutability and closures are required for that, because mutability may break homoiconicity (which is required for purity), and lack of closures means you