POV-Ray : Newsgroups : povray.off-topic : Half the battle : Half the battle Server Time
3 Sep 2024 23:25:45 EDT (-0400)
  Half the battle  
From: Orchid XP v8
Date: 3 Jul 2010 06:58:31
Message: <4c2f17d7@news.povray.org>
Suppose you look at a diagram relating the important standard library 
classes for some object-oriented language. You'd probably see things 
like Container, Array, List, Dictionary, Stream, InStream, OutStream, 
Exception, and so forth.

Now look at the attachment.

I'm starting to see why people think Haskell is scary. (!) All of these 
things are pretty abstract. Actually, most of them are lifted directly 
from either Category Theory or Abstract Algebra. E.g., a monoid is any 
set possessing an associative binary operation with an identity element. 
WOOOSH!

Makes it pretty clear what kind of abstractions Haskellers value, eh? 
When there *is* a predefined class for "a monoid in the category of 
endofunctors", but there *isn't* one for "ordered container"...

(FWIW, Haskell does have a hierachy of number classes, which looks more 
or less like what any other language has - including being horribly 
broken in several ways.)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message


Attachments:
Download 'eg1.png' (45 KB)

Preview of image 'eg1.png'
eg1.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.