top | item 28515173

(no title)

myWindoonn | 4 years ago

Ah, to be reminded of high school, where one could be not popular simply because they are weird.

I think that they've confused functional and declarative?

discuss

order

sidlls|4 years ago

This is about as far from "popular kids make fun of nerds for being weird and nerdy" as you can get. It's more like two different groups of nerds having a nerd-fight about which kind of nerd is the better kind.

davidatbu|4 years ago

I'm curious, what is the difference between a declarative programming language and a functional one?

gopiandcode|4 years ago

Declarative languages are characterised by having the programmer specify _what they want_ but not _how to get it_ (i.e to get a sorted list, you would specify that the elements are in increasing order, but not the specific algorithm to use). In contrast, functional languages are characterised by treating functions as first class values (amongst other things, but these are harder to summarise).

Prolog for example is a declarative language, Haskell is a functional language.