4 ms·
Just as you can write FORTRAN or COBOL in any language, you can write functional code in any language.
by wisty 14y ago
Just as you can write FORTRAN or COBOL in any language, you can write functional code in any language.
- innguest 14y agoNo 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.
- KirinDave 14y agoYou 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.