[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

metaclass in python, role in perl and AOP in ruby

Lionel Thiry

5/26/2005 4:18:00 PM

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.

--
Lionel Thiry

Personal website: http://users.skynet....
5 Answers

gabriele renzi

5/26/2005 11:34:00 PM

0

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.

Logan Capaldo

5/27/2005 2:48:00 AM

0

On 5/26/05, gabriele renzi <surrender_it@remove-yahoo.it> wrote:
> 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.
>
>
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.


james_b

5/27/2005 3:19:00 AM

0

Logan Capaldo wrote:
> ...
> 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.ru... - The Ruby Documentation Site
http://www.r... - News, Articles, and Listings for Ruby & XML
http://www.rub... - The Ruby Store for Ruby Stuff
http://www.jame... - Playing with Better Toys


gabriele renzi

5/27/2005 8:42:00 AM

0

Logan Capaldo ha scritto:

>
> How about we don't worry about Ruby mimicing anything?

actually I was trying to say this :/

Christian Neukirchen

5/29/2005 9:29:00 AM

0

gabriele renzi <surrender_it@remove-yahoo.it> writes:

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

Everything mimics Common Lisp, but most things do it worse. :-)

--
Christian Neukirchen <chneukirchen@gmail.com> http://chneuk...