Is Ruby more like Perl or Python?

Source: Internet
Author: User
It is often seen that Ruby is compared with Python, and some say that Ruby is more like a combination of Perl and Python, so is ruby more like Python or Perl?

Reply content:

See what Matz is saying: / http blade.nagaokaut.ac.jp/c gi-bin/scat.rb/ruby/ruby-talk/179642

Ruby is a language designed in the following steps:

* Take a simple Lisp language (like one prior to CL).
* Remove macros, s-expression.
* Add Simple Object System (much simpler than CLOS).
* Add blocks, inspired by higher order functions.
* Add methods found in Smalltalk.
* Add functionality found in Perl (in OO).

So, Ruby is a Lisp originally, in theory.
Let's call it matzlisp. ;-)

So you see, it doesn't even mention python. Ruby is primarily influenced by Lisp, Smalltalk, and Perl.
This is called Ruby , since Perl's pronunciation is the same as the June birthstone Pearl (Pearl), and Ruby chooses to name the Birthstone Ruby (Ruby) in July.
Tangfeng , A developer of Perl 6, Autrijus/audrey: "Ruby is a Perl 6 ' that doesn't advertise everywhere."
Ruby's father, as, said in his interview with O ' Reilly (O ' Reilly), "Ruby borrowed a lot of perl stuff ..., Python is much less than perl ...", " I think Ruby's name is just as good as the name of a language after Perl.

"In many ways I still like Ruby, because those parts are borrowed from Perl," said Larry Wall, the father of Perl, Larry Wall. :-) "," I also like Ruby's c<*> unary asterisk operator, so I added it to Perl 6.
From:ruby Like Perl more like Perl, it's like, "You're more of a parent than you are".

You are you, Ruby is Ruby. Ruby just borrows from someone else's good place. No particular language was found. Perl, of course, if it's like Python, then .....
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.