Re: Handling pathological lists
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Handling pathological lists

From: Donal K. Fellows <donal.k.fellows@man.ac.uk>
Date: Mon Oct 31 2005 - 22:02:03 CET

Kaitzschu wrote:
> And fails this (unposted case),
> % flatten [list "fgoo bar" "boooo far"]
> fgoo bar boooo far
> which, I guess, is pretty much impossible to avoid, since lists don't
> force single whitespace.

Now you're making up new requirements as you go along. Not fair! (On
the other hand, I'd argue that [flatten] gives the right answer, given
those input lists. Remember that it's often useful to have
non-canonical list constants in your scripts for readability reasons.)

Donal.
Received on Mon Nov 21 00:37:28 2005