[Haskell-cafe] What is your favourite Haskell "aha" moment?

Tony Morris tonymorris at gmail.com
Fri Jul 13 06:52:58 UTC 2018

I am not fixing python. I am fixing the consequences of the fact that it

On 07/13/2018 04:47 PM, Joachim Durchholz wrote:
> Am 13.07.2018 um 01:40 schrieb Tony Morris:
>> On python, we are fixing it (WIP):
>> https://github.com/qfpl/hpython
> Some poisonous aspects of Python are unfixable.
> E.g. having declarations as program-visible update to a global state
> causes all kinds of unnecessary pain, such as having to deal with
> half-initialized peer modules during module initialization.
>> Did you see the recent "default mutable arguments" post?
>> https://lethain.com/digg-v4/
> Yeah, the "default parameter is an empty list but that's then going to
> be updated across invocations" classic.
> Other languages have made the same mistake. Default data needs to be
> either immutable or recreated on each call.
> Such mistakes can be mitigated, but they cannot be fixed while staying
> backwards-compatible.
> Python actually did an incompatible switch from 2 to 3, but for some
> reason Guido didn't fix the above two, or some other things (such as
> Python's broken idea of multiple inheritance, or the horribly
> overcomplicated way annotations work).
> Python is nice for small tasks. If you accept its invitation to extend
> it you get fragility (due to the inability to define hard constraints
> so whatever you extend will violate *somebody's* assumptions), and if
> you scale to large systems you get fragility as well (because Python
> modularization is too weak).
> Well, enough of the off-topic thing here.
>> On 07/12/2018 07:58 PM, Brett Gilio wrote:
>>> Python is poison, indeed. ;)
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180713/1359a21a/attachment.sig>

More information about the Haskell-Cafe mailing list