Home
Testing 1,2,3... [entries|archive|friends|userinfo]
djberg96

[ website | Sapphire ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Links
[Links:| Ruby Home RubyForge RAA comp.lang.ruby Ruby Documentation ]

For you Smalltalk/Ruby fans [Sep. 1st, 2009|09:13 pm]
[Tags|, ]
[mood | curious]

I just came across this: http://smalltalk.felk.cvut.cz/projects/smallruby

I've no idea what the actually compatibility is. Still, looks cool.
linkpost comment

That's not simplicity. *This* is simplicity. [Apr. 20th, 2006|01:55 pm]
[Tags|, ]
[mood | amused]

James Robertson recently posted this to demonstrate the 'simplicity' of Smalltalk.

Frankly, I'm baffled. Simple? I don't think so. Consider the Ruby equivalent:
def factorial(x)
   raise ArgumentError if x < 0
   return 1 if x <= 1  
   x * factorial( x - 1 )
end

Which would you rather look at? Oh, and Haskell has everyone beat:
fac n | n > 0 = product [1..n]
link7 comments|post comment

navigation
[ viewing | most recent entries ]

Advertisement