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

Just as you can write FORTRAN or COBOL in any language, you can write functional code in any language.


No you can't, as you need the language to provide a few basic building blocks, such as lambdas, and the ability to pass functions as arguments.


You can generally approximate higher order functions in almost every OOP language. See C++ before it got lambdas, they have a pattern. See also java's anonymous inner classes, which are often used with the Runnable interface for that rule.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: