
KRC, Miranda, and LML all predate Haskell and have list comprehensions.
On Thu, Nov 4, 2010 at 3:16 PM, Jonathan Geddes
Regardless of which languages got which features for which other languages, Haskell is surely NOT a "scripting language inspired by python"...
Also, it was my understanding that Python got list comprehensions straight from Haskell. Unless, of course, some of the pre-Haskells also had this feature.
Haskell: [f x | x <- xs, x <= 15] Python: [f(x) for x in xs if x <= 15]
The Python version reads the way I would speak the Haskell one if I were reading code aloud, though I might say "such that" rather than "for"
--Jonathan Geddes
On Thu, Nov 4, 2010 at 6:05 AM, Stephen Tetley
wrote: On 4 November 2010 12:03, Stephen Tetley
wrote: Python is approximately as old as Python and most likely got indentation from ABC.
Apologies that should read - "as old as Haskell"
Obviously IDSWIM - (I _don't_ say what I mean). _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe