[Haskell-cafe] Re: "Haskell is a scripting language inspired by
Python."
Lennart Augustsson
lennart at augustsson.net
Thu Nov 4 18:30:52 EDT 2010
KRC, Miranda, and LML all predate Haskell and have list comprehensions.
On Thu, Nov 4, 2010 at 3:16 PM, Jonathan Geddes
<geddes.jonathan at gmail.com> wrote:
> 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 <stephen.tetley at gmail.com> wrote:
>> On 4 November 2010 12:03, Stephen Tetley <stephen.tetley at gmail.com> 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 at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
More information about the Haskell-Cafe
mailing list