Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror

Comment Re:Why is Ruby gaining such media attention? (Score 1) 108

--I want to be able to pass functions around like any other object
#Use Proc.new
p = Proc.new { } ; o.method( p )

--Not quite multi-paradigm enough for my taste (why can't I work with plain functions, for example, instead of everything's-a-method?)
# Works fine.

def hello()
    print "hello world\n"
end
hello

Slashdot Top Deals

I cannot conceive that anybody will require multiplications at the rate of 40,000 or even 4,000 per hour ... -- F. H. Wales (1936)

Working...