News for hackers. Stuff that matters.
Re:Why functional programming? Why Haskell? by tome on Saturday August 10, 2013 @06:50AM (#6190652)
Relational programming is indeed excellent, but how can you put up with writing in SQL? Of all the programming languages I've ever used, it's the one that allows the least abstraction.
Re:Why functional programming? Why Haskell? by unono on Saturday August 10, 2013 @07:15AM (#6190690)
Abstraction in sql are views, done with left joins (rules in prolog). It doesn't seem like much, but that's the beauty of of it, you only need one concept and that's all you need. Contrast that with other languages where you have hundreds of little functions.
Re:Why functional programming? Why Haskell? by tome on Saturday August 10, 2013 @07:25AM (#6190712)
Not all abstractions are relations though. In SQL can you abstract the functionality of "take a relation with one int column, one string column, one double column, sum the int column, group by the string column and average the double column"?

Do views support the notion of primary keys and foreign keys?

I wouldn't be able to program in SQL without the former, and the latter would also be useful.