[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Dir.bitbucket?

Logan Capaldo

8/22/2006 9:45:00 PM


On Aug 22, 2006, at 1:36 PM, John Johnson wrote:

> On Tue, 22 Aug 2006 01:56:17 -0400, Daniel Berger
> <djberg96@gmail.com> wrote:
>
>> nobu@ruby-lang.org wrote:
>> Dir.bitbucket
>> Dir.devnull
>> Dir.null_device
>> Dir.null
>> Dir.black_hole
>>
>> I guess I'm leaning towards Dir.null_device in terms of most
>> technically descriptive. It doesn't quite roll off the tongue as
>> nicely as "bitbucket", though. :)
>
> How about:
>
> oblivion = File.open(nil, 'w')
>
> Seems intuitive.
>

For what definition of intuitive? nil is not a path, it's not even a
string that could represent a path.

> Regards,
> JJ
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera...
>


1 Answer

John Johnson

8/23/2006 2:38:00 AM

0

On Tue, 22 Aug 2006 17:44:42 -0400, Logan Capaldo <logancapaldo@gmail.com>
wrote:

>
> On Aug 22, 2006, at 1:36 PM, John Johnson wrote:
>> How about:
>>
>> oblivion = File.open(nil, 'w')
>>
>> Seems intuitive.
>>
>
> For what definition of intuitive? nil is not a path, it's not even a
> string that could represent a path.

Exactly.

What happens when you write to a nil file? Nothing.

Where does the stuff go? Nowhere.

Oh yeah, it also doesn't have to be translated into 150 languages like
'bit bucket' would.

Regards,
JJ


--
Using Opera's revolutionary e-mail client: http://www.opera...