Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Initial impressions of Ruby

Name: Anonymous 2006-03-11 7:12

Ruby is lol Object Oriented. That's why you can do -5.abs. In Java you would have to do Math.abs(-5), but Ruby is lol Object Oriented so you don't have to do that shit.

Unless you want to do say 1012.log10. Sorry, seems you have to do Math.log10(1012) after all.

Name: Anonymous 2006-03-12 8:04

One could make the case that putting log10 in the Math module is actually a good thing. In maths, we never say x.log10, we say log10(x). As Ruby supports "mixins" you can just include Math in your project and you can call log10(x) any time you like. Ruby may be purely OO, but it doesn't ram it down your throat, unlike certain other languages...

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List