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

Unfortunately the term 'function' is somewhat misused in most programming languages, where 'procedure' would be a better term. The Wirth languages, Haskell, and Nimrod are the few that seem to get this right.


Ada too, it has distinct procedures and functions; the latter producing only one output based only on its inputs (though I believe recently they added the ability to also have out parameters so multiple values can be returned).




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

Search: