|
scottburton11 (May 7, 2008 at 6:59 am)
Emuliator.
natlang1 (May 2, 2008 at 1:21 pm)
Cool, Ruby 2 and Perl 6 will both be released on the same day - Christmas.
kristonholt (April 30, 2008 at 10:27 pm)
how do i download ruby? when i try to download it i need a program to open it what should i use?
nkchenz (April 10, 2008 at 10:19 am)
very good and interesting
dav231988 (March 12, 2008 at 5:07 pm)
Ruby and Matz roxrz!
JonThm (February 28, 2008 at 9:39 pm)
GW is nuclear power fiction! Google a stooge.
lfecdr (February 28, 2008 at 2:30 pm)
Where I can download subtitles?
s1e (February 27, 2008 at 12:21 am)
Hehe, Matz rocks. The last question was a bit awkward, but it showed Ruby's beautyThe Hash object at the bottom of the arguments list Matz was explaining about, can actually have the brackets omitted, but is still interpreted as :a => hash. When you want to pass another hash in the parameter, you have to explicitly wrap them both in brackets, or instantiate by Hash#newIf you have a functiondef google(opts) puts opts[:foo] + boo endThis is how it looksgoogle {:boo => "foo"}, {:far => "bar"}
s1e (February 27, 2008 at 12:20 am)
BUT since the latter hash is actually just for named parameters, you can probably pass both hash and the named param like google {:foo => "bar}, :boo => "far" and Ruby should interpret it fineIt's questionable whether Rails should be rewritten to simply use variables instantiated by named params instead of internally deciphering them from an options hashI'm not in posession of 2.0, so I some of this is speculative, hope it helps though :-)
bigbold2 (February 25, 2008 at 12:39 pm)
Interesting, then, that he followed the convention of using English names for everything in the language. It's a convention, sure, but if I were building a language for myself and my first language wasn't English, I wouldn't be using English. Of course, this is why I don't have a world-class language to my name ;-) |