3 ms·
A question: Why ML family languages need `rec` for recursive functions while other languages do not?
by zerr 11y ago
A question: Why ML family languages need `rec` for recursive functions while other languages do not?
- eatonphil 11y agohttp://stackoverflow.com/questions/9325888/why-does-ocaml-need-both-let-and-let-rec http://stackoverflow.com/questions/9325888/why-does-ocaml-ne... and http://stackoverflow.com/questions/900585/why-are-functions-in-ocaml-f-not-recursive-by-default http://stackoverflow.com/questions/900585/why-are-functions-...
- CHY872 11y agoThey don't. Standard ML has the `fun` keyword which does what you want. OCaml has it, but it could easily be for legacy reasons - it's hardly a sticking point!