in reply to Re^4: So much like a natural language
in thread So much like a natural language
I learned some Ruby. Enough to write some programs that I wish could be translated easily into Perl. ;) Then I got jealous, and cursed the name of Ruby
One of the nicest features about Ruby is one of it smallest and perhaps least significant. That ending punctuation on methods is so visually appealing and powerful to me.
That just floored me. I wrote one really dumb program that exploited that. I made chomp? that basically returned whether the string would be changed by chomping it. What a cool feature. And so tiny!str = orig.chomp; # chomp()s copy of orig, stores in str orig.chomp!; # chomp()s orig in-place
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: So much like a natural language
by pbeckingham (Parson) on Jun 27, 2004 at 05:03 UTC |
In Section
Meditations