This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C-like identity?


Ian Bicking <ianb@colorstudy.com> writes:

> > Yes, but accessing list via list-ref is not very common, I think.
> 
> I think it would be for C programmers.  I'd expect them to do:
> 
>   function my_map(func, l) {
>     var new_l=make_list(10), i;
>     for (i=0; i<length(l); i++) {
>       new_l[i]=func(l[i]);
>     }
>     return new_l;
>   }
> 
> car and cdr are not very C-style.

But should we encourage this style?  I don't think so.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]