The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Mozilla Kinda Discovers Rubyland

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Premshree Pillai

Posts: 478
Nickname: premshree
Registered: Mar, 2004

Premshree Pillai is a Ruby evangelist, working with Yahoo!.
Mozilla Kinda Discovers Rubyland Posted: May 30, 2005 12:12 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Premshree Pillai.
Original Post: Mozilla Kinda Discovers Rubyland
Feed Title: Premshree's Personal Weblog
Feed URL: http://premshree.livejournal.com/data/rss
Feed Description: Premshree's Weblog
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Premshree Pillai
Latest Posts From Premshree's Personal Weblog

Advertisement

"ruby javascript".split(" ").map (
	function (ele) {
		return ele.toUpperCase();
	}
)

I know, that easily looks like some Ruby code. But it’s goddamn JavaScript.

Wait, there’s more. Some day, not so far away, I must guess, we could soon be doing something like this:

["I", "love", "objects"].forEach (
	function (element, index, array) {
		print element;
	}
)

Basically, the cool folks at Mozilla have extended the JavaScript specifications, specifically adding a buncha cool stuff to the Array object.

You sure do see where this has probably come from, don’t you? Now if only it’d behave like real Ruby blocks.

(Discovered via Slashdot.)

Read: Mozilla Kinda Discovers Rubyland

Topic: Spore and the Demo Scene Previous Topic   Next Topic Topic: Redefining File methods

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use