« Various uses of embedded Perl 5. | Main | ddrescue'ing »



Feed You can follow this conversation by subscribing to the comment feed for this post.

The LEAVE closure trait is not at all like P5's DESTROY or a C++ destructor. LEAVE is analogous to Java's finally clause, which places the burden upon the user of the class to know the inner workings of the class every time it is to be used in order to clean up after it. It leads to putting LEAVE {} blocks in every method using the object - leading to code bloat. The C++/Perl5 way of doing things led to fewer lines of code and no chance of errors in closing resources. Abandonning deterministic destruction is a step backwards. A good programming language should help us write fewer lines of code - not more lines of code. All thing talk of "not scaling" is just hand waving to confuse you into accepting the shortcomings of non-determinitic object destruction.

The comments to this entry are closed.

December 2015

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31