« 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.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Comments are moderated, and will not appear until the author has approved them.

Your Information

(Name is required. Email address will not be displayed with the comment.)

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