What Can Ruby Do for the Enterprise?

pudge on 2003-03-11T12:46:44

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.


Ruby and Enterprise

yudel on 2003-03-12T16:35:38

I hate to say it, but after an unimpressive season and a half of Enterprise, closure might not be such a bad thing.

Re:Ruby and Enterprise

wickline on 2003-03-12T20:38:45


Does Ruby do closures?
(I haven't used Ruby yet, myself.)

-matt

Re: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.

What's wrong with copying from sh?

SuperCruncher on 2003-03-13T00:34:48

"Yeah, but sh influenced the design of Perl, too"

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 :-) And I'm not a Python fan, but there are bits of the language I like - so why not use them?

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!).