From: Cezary Date: 2011-06-10T23:13:13+09:00 Subject: [ruby-core:36941] Re: [Ruby 1.9 - Feature #4824] Provide method Kernel#executed? On Fri, Jun 10, 2011 at 09:35:24PM +0900, Austin Ziegler wrote: > On Thu, Jun 9, 2011 at 3:49 PM, Cezary Baginski > wrote: > > Issue #4824 has been updated by Cezary Baginski. > > > > ��__FILE__ == $0 > > > > just a hack for letting a file be *both* a script and a "library" > > at the same time? With the only sane use (I can think of) being > > adding unit tests? > > Tests are most *certainly* not the only good reason for this feature, > and I would regret its departure. By "sane" use I didn't mean "good" use. Especially with a team working together and source control. I have nothing against the current use of checking for main script, but I don't think promoting its use through additional language support is beneficial. -- Cezary Baginski