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...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Dir.bitbucket?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password