Self function

Luis Zarrabeitia kyrie at uh.cu
Tue May 5 14:44:24 CEST 2009


On Tuesday 05 May 2009 03:51:19 am Steven D'Aprano wrote:
> def ivisit(node):
>     print node
>     while node and node.link is not None:
>         node = node.link
>         print node
>
> def rvisit(node):
>     print node
>     if node and node.link is not None:
>         rvisit(node.link)
>
>
> If there are programmers who find rvisit "a lot less readable" than
> ivisit, then in my arrogant opinion they should consider a change of
> profession.

/me smiles.

What if I happen to find rvisit _more_ readable than ivisit?

/me ducks.

[I'm not a lisp user, but I tend to think recursively anyway...]

-- 
Luis Zarrabeitia (aka Kyrie)
Fac. de Matemática y Computación, UH.
http://profesores.matcom.uh.cu/~kyrie



More information about the Python-list mailing list