From: Premshree Pillai Date: 2005-01-10T06:54:57+09:00 Subject: Re: Python vs Ruby On Sun, 9 Jan 2005 21:31:13 +0100, Lothar Scholz wrote: > Hello Premshree, > > PP> On Mon, 10 Jan 2005 04:06:40 +0900, Lothar Scholz > PP> wrote: > >> Hello Lethalman, > >> > >> L> (sorry for my poor English) > >> L> Hello, > >> L> i'm a pythonist but i like very much some ruby features, however it > >> L> doesn't seem to be very supported at all like Python. > >> L> I never programmed in ruby, because i python is more used. > >> > >> L> I would like to know why ruby doesn't "take the fly" like Python did, > >> L> because i really would like to try the ruby language! > >> > >> At the moment i would say that the language is in some aspects better > > PP> Could you elaborate on those aspects? > > Orthogonal OO design, blocks and open classes are in my opinion the only > serious differences in the language. A mark-sweep GC vs. reference > counting GC is also a huge difference but only visible in the C-API. Yes, that's one of the major differences I point out when I compare Ruby with Python. The other thing I used to point out was that Ruby doesn't have a "self" for instance variables :-D I can't use that anymore, though: that has been elminated now, I'm told. > > I think that the GC is the reason why many people find writing ruby > extensions is easier then writing python extensions - also the basic > ruby routines are easier to call from C then in python. > > IMHO the different syntax shouldn't be an argument for a "serious" > programmer. But i prefer ruby's syntax when written and indented in a Rightly said. > good way. The situation where you get cascaded 'end's at the end of a > method or class is quite confusing in python, because with multiple > 'ends' you have a better visual hint then one huge de-indentation. > > -- > Best regards, emailto: scholz at scriptolutions dot com > Lothar Scholz http://www.ruby-ide.com > CTO Scriptolutions Ruby, PHP, Python IDE 's > > -- Premshree Pillai http://www.livejournal.com/~premshree