Python is DOOMED! Again!
Paul Rubin
no.email at nospam.invalid
Mon Feb 2 01:12:38 EST 2015
Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:
> if type(ptr) == A:
> if ptr != Anil: ...
> if type(ptr) == B:
> if ptr != Bnil: ...
> etc. That would be insane. So how does Haskell do this?
That wouldn't make sense in Haskell: the types are known at compile
time, so you wouldn't do that runtime switching on them.
> At the bottom of the page is a link to a .mov version.
Didn't see that earlier. Managed to download and mplayer is able to
show it. Thanks!
You might like: http://learnyouahaskell.com/chapters
More information about the Python-list
mailing list