What, again?
Posted May 1, 2007 22:45 UTC (Tue) by
ncm (subscriber, #165)
In reply to:
What, again? by dark
Parent article:
The Rise of Functional Languages (Linux Journal)
"Stone Age" refers to the impossibility of encapsulating management of the resource in the languages under discussion. One is left manually calling "close" functions, or (as in dcoutts's toy example above) trying to match resource lifetime to program control flow. "Imperative" (vs., presumably, "declarative") does not make a meaningful distinction. Any language that lacks destructors leaves the programmer needing to explicitly "open and close the database connection", or the mutex, or the socket, or what-have-you.
Traditionally Python has avoided this problem by supporting the equivalent of destructors in C-coded language extensions.
(
Log in to post comments)