Odud writes "E-Commerce News has this short article. Abstract: 'Not only is Ruby moving ahead, but other languages are taking cues from it. For example, O'Reilly Network technical editor chromatic said Ruby is having some influence on the design of Perl 6.'" Yeah, but sh influenced the design of Perl, too.
Re:Ruby and Enterprise
wickline on 2003-03-12T20:38:45
Does Ruby do closures?
(I haven't used Ruby yet, myself.)
-mattRe:Ruby and Enterprise
schwern on 2003-03-17T18:31:39
Yes.
def make_hello (greeting)
return proc { puts greeting }
end
hi = make_hello("Hi there");
oi = make_hello("Oi!");
hi.call
oi.call
This line exists because the filters won't let me post a comment that has short lines.
Is the fact that bits of Ruby (and even *gasp* Python) are being copied or being using to influence Perl 6's design a bad thing? No. Is it surprising? No. Larry Wall has freely admitted that in designing Perl, he took the bits he liked most from other languages, and in most cases vastly improved them.
I would think that Python and Ruby should be glad that we're copying some of their features. Inevitably, we'll improve them in ways they could never imagine and they'll then be "back ported" to Python or Ruby
As a little slightly offtopic aside, I feel obliged to mention a comment made by Schwern at Belfast.pm on Monday: "just change the grammar". If there's something you don't like in Perl 6, well, just change the grammar! I just had to say that as I did find it rather amusing (Scwhern's whole reason for this was that he could have a function called as isn't even when the ' can no longer be used as a package separator - he just redefined the definition of an identifier!).