metaclass in python, role in perl and AOP in ruby

L

Lionel Thiry

Hello!

I had some kind of vision the other day:

* Python
It has metaclasses programming since version 2.3.

* Perl6
It will focus on roles.

* Ruby2
If ruby2 focus too much on metaclasses, it would mimic python2.3. If
ruby2 focus on roles, it would mimic perl6. If ruby2 focus on AOP, ruby
wouldn't mimic anything.
 
G

gabriele renzi

Lionel Thiry ha scritto:
Hello!

I had some kind of vision the other day:

* Python
It has metaclasses programming since version 2.3.

* Perl6
It will focus on roles.

* Ruby2
If ruby2 focus too much on metaclasses, it would mimic python2.3. If
ruby2 focus on roles, it would mimic perl6. If ruby2 focus on AOP, ruby
wouldn't mimic anything.

it would mimic AspectJ. Or, if we just install the supposed :pre :post
:wrap hooks it would mimic Common Lisp, I think.
 
L

Logan Capaldo

Lionel Thiry ha scritto:
=20
it would mimic AspectJ. Or, if we just install the supposed :pre :post
:wrap hooks it would mimic Common Lisp, I think.
=20
=20
How about we don't worry about Ruby mimicing anything? Just let it do
what it does. There's no reason to artificially impose a focus for
Ruby 2 just to avoid "mimicing" other languages. Some would say Ruby
mimics perl right now ($_, $1, etc.), but that doesn't really matter
because it has its merits and its disadvantages just like any other
language. I hope ruby doesn't become an AOP language or a metaclass
language or a role language, but rather a Ruby language.
 
J

James Britt

Logan said:
...
How about we don't worry about Ruby mimicing anything? Just let it do
what it does. There's no reason to artificially impose a focus for
Ruby 2 just to avoid "mimicing" other languages. Some would say Ruby
mimics perl right now ($_, $1, etc.), but that doesn't really matter
because it has its merits and its disadvantages just like any other
language. I hope ruby doesn't become an AOP language or a metaclass
language or a role language, but rather a Ruby language.

I sort of figured most modern languages get where they are because
people continually look at other languages and steal the better ideas.

Seems goofy to worry at this point that someone will accuse Ruby of
being derivative or of having features found in other languages.



James


--

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top