This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: C-like identity?
On Mon, Jul 31, 2000 at 09:51:55PM +0200, Marius Vollmer wrote:
> > 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.
The point of a C syntax is not as a stealth tactic to create more
functional programmers. So I don't think we should encourage or
discourage style unless there is a particularly compelling reason
-- like security. In this case, sure, it's not great code. But
it will work, and it will make sense to a C programmer.
-- Ian