Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A question: Why ML family languages need `rec` for recursive functions while other languages do not?



They 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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: