This is the mail archive of the guile@sourceware.cygnus.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: readdir


Dirk Herrmann <dirk@ida.ing.tu-bs.de> writes:

> I felt that guile users might be disappointed because of the seemingly
> enormous efforts in order to achieve something that perl does in three
> lines of code.  Thus, I took a different approach and wrote a more
> tutorial style thingy about how to arrive at a point where you could
> simply write the following line in guile:
> 
>   (sort (grep "^[^.]" (directory->list ".")) string<?)

As Marius would say: "buutiful!" :-)

I think we should learn from your example.  While it's interesting to
make plain translations of Perl code, it's way better to demonstrate
true Scheme power!

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