Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: What's wrong with Ruby

From: moliad:gma:il at: 21-Mar-2007 20:02

On 3/21/07, Tim Johnson <tim-johnsons-web.com> wrote:
> > On Wednesday 21 March 2007 23:21, Maxim Olivier-Adlhoch wrote: > > On 3/21/07, Tim Johnson <tim-johnsons-web.com> wrote: > > > I use rebol and python about 50/50. Despite what is said in > > > that article, I find python impressively well and thoughtfully > designed, > > > but it takes more code than rebol to get things done. > > > > hi tom, did you end up creating a few of the REBOL practical funcs > within > > python like I did and reduce code size by a few steps? > > Tim here :-). I did where applicable, of course python doesn't work > with symbols....
oops ! :-)
> > select, rejoin, all, any, view layout... come to mind as a few which > > simplified much of my python coding where I used to work. > > And extract, first, second, third etc. > <grin> but then I wrote slice functions for rebol.. And a 'yield > function for rebol, which I use extensively.
I wish Carl would heed my notes on (any) slice notations for rebol... its about 1/2 of what is good in python ;-) I've got several python books here. Some make glowing references
> to the influence of lisp on python. Personally, I think rebol is much > more influenced by lisp than is python. I believe that what the > writers refer to is the generic function approach, where the behavior > of a python class instance can be modified by a special method which > links to a python function. Example: __repr__ => print.
that's the other half, ;-) accessors... yes.. you can implement any of the get/set/print/etc as you want virtually on any instance which is very nice since you integrate new classes paradigms directly within the language's natural workflow. Where I used to work, I had done tests which would set attributes of other objects (for statistics) when you'd do inst.member value usage of the of the instances was completely invisible in the code. this is VERY powerfull. Carl sort of hinted at some limited form of this for R3, but I wish we had access to ALL of REBOL's accessors. (first, insert, get, set, etc) -MAx