Comments on Weekly Perl 6 mailing list summary for 21-28 January, 2007TypePad2007-02-23T15:43:53Zaudreythttps://pugs.blogs.com/pugs/tag:typepad.com,2003:https://pugs.blogs.com/pugs/2007/02/weekly_perl_6_m/comments/atom.xml/Mike commented on 'Weekly Perl 6 mailing list summary for 21-28 January, 2007'tag:typepad.com,2003:6a00d83451e8fb69e200d8351bd8e969e22007-02-24T01:59:47Z2007-08-21T15:13:17ZMikeThe LEAVE closure trait is not at all like P5's DESTROY or a C++ destructor. LEAVE is analogous to Java's...<p>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.</p>