Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ruby2] will $ for global disapears in ruby2?

Reply
Thread Tools

[ruby2] will $ for global disapears in ruby2?

 
 
Lionel Thiry
Guest
Posts: n/a
 
      04-11-2005
Hello!

I remember some posts saying that $ for globals will disapear from ruby2. Is it
still the case?

If I correctly remember arguments for that disapearance are:

1) short globals $', $:, etc, are too cryptic (and perlist)
2) globals are not good/true OO
3) globals may instead be managed through some module or class

module Globals
@my_global = "default value"
class <<self
attr_accessor :my_global
end
end

puts Globals::my_global # => default value


--
Lionel Thiry
 
Reply With Quote
 
 
 
 
Yukihiro Matsumoto
Guest
Posts: n/a
 
      04-11-2005
Hi,

In message "Re: [ruby2] will $ for global disapears in ruby2?"
on Tue, 12 Apr 2005 01:54:38 +0900, Lionel Thiry <(E-Mail Removed)> writes:

|I remember some posts saying that $ for globals will disapear from ruby2. Is it
|still the case?

$-variables will not disappear. Some of perlistic $<figure> variables
might.

matz.


 
Reply With Quote
 
 
 
 
Jeffrey Moss
Guest
Posts: n/a
 
      04-11-2005
What about optional strong typing and multimethods in ruby2? I saw a lot of
people wanted that with that thread a while back "What would you most like
to see in the next ruby", is that ever going to happen?

Is there a ruby2 white paper or something?

-Jeff

----- Original Message -----
From: "Yukihiro Matsumoto" <(E-Mail Removed)>
To: "ruby-talk ML" <(E-Mail Removed)>
Sent: Monday, April 11, 2005 11:43 AM
Subject: Re: [ruby2] will $ for global disapears in ruby2?


> Hi,
>
> In message "Re: [ruby2] will $ for global disapears in ruby2?"
> on Tue, 12 Apr 2005 01:54:38 +0900, Lionel Thiry
> <(E-Mail Removed)> writes:
>
> |I remember some posts saying that $ for globals will disapear from ruby2.
> Is it
> |still the case?
>
> $-variables will not disappear. Some of perlistic $<figure> variables
> might.
>
> matz.
>




 
Reply With Quote
 
Lionel Thiry
Guest
Posts: n/a
 
      04-11-2005
Yukihiro Matsumoto a écrit :
> Hi,
>
> In message "Re: [ruby2] will $ for global disapears in ruby2?"
> on Tue, 12 Apr 2005 01:54:38 +0900, Lionel Thiry <(E-Mail Removed)> writes:
>
> |I remember some posts saying that $ for globals will disapear from ruby2. Is it
> |still the case?
>
> $-variables will not disappear. Some of perlistic $<figure> variables
> might.
>
> matz.
>
>


Too bad for me, I was thinking about writing an RCR that would reuse the $ sigil.

--
Lionel Thiry
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does xml-commons-apis RPM disapears Java ? boardrider Java 0 08-24-2006 02:08 PM
GridView disapears after selecting Edit =?Utf-8?B?TWljaGFlbA==?= ASP .Net 2 04-13-2006 03:15 PM
Add/Remove Programs List Disapears..... .......GF Computer Support 0 09-25-2004 11:17 AM
harddisk space disapears kwijlebabulus Computer Information 2 08-20-2004 10:55 AM
Outlook Express POP3 setting disapears Andy Wilson Computer Support 5 09-07-2003 03:32 PM



Advertisments