Am 15.11.2011, 14:35 Uhr, schrieb Andrei Alexandrescu
<[email protected]>:
Java does not allow one to write a free function
(which stands in the way of it being imperative)
As long as one doesn't try to do 'functional' programming, free functions
in Java can often be conceptually be bound to a certain class. So they'd
simply be static methods, which resembles free functions with namespaces.
JavaScript is even harder to describe. You can write and call free
functions, but they actually end up as properties in the global object.
They are hybrid.