From: Tony Arcieri Date: 2012-09-18T05:26:43+09:00 Subject: Re: Dir.mktmpdir doesn't remove it at exit? --e0cb4e43d34159cdac04c9eb9792 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Sep 17, 2012 at 11:30 AM, Marc Heiler wrote: > Hmmm. IMO, the behaviour should be consistent, and not depend on whether > a block form was used. "A foolish consistency is the hobgoblin of little minds" Many methods in Ruby which deal with external resources (File.open/Socket.open anyone?) have both a block form (that cleans itself up automatically) and a non-block form that requires manual cleanup (e.g. close your file descriptors, although the GC will *eventually* do it for you if you can't be bothered to do that) This is no different. -- Tony Arcieri --e0cb4e43d34159cdac04c9eb9792 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Sep 17, 2012 at 11:30 AM, Marc Heiler <lists@ruby-forum.com> wrote:
Hmmm. IMO, the behaviour should be consistent, and not depend on whether a block form was used.

"A foolish consistency is the h= obgoblin of little minds"

Many methods in Ruby which deal with= external resources (File.open/Socket.open anyone?) have both a block form = (that cleans itself up automatically) and a non-block form that requires ma= nual cleanup (e.g. close your file descriptors, although the GC will *event= ually* do it for you if you can't be bothered to do that)

This is no = different.

--
Tony Arcieri

--e0cb4e43d34159cdac04c9eb9792--