News for hackers. Stuff that matters.
Re:In many ways PHP is just now starting to come into its own by PommeDeTerre on Saturday August 24, 2013 @09:31AM (#6268579)
Support for higher-order functions is obviously a minimal requirement of a "functional programming language". But functional programming extends far, far beyond that.

It also embodies a philosophy emphasizing the purity of such functions. It encourages the use of recursion for iteration. It encourages the use of robust type systems. It encourages the use of pattern matching. It discourages the use of many imperative approaches.

Although they may offer some form of higher-order functions these days, I don't consider languages like JavaScript, C#, C++, Ruby or PHP to be "functional programming languages". They're imperative languages that just happen to have added the most basic of functionality expected from functional programming languages. They don't truly encourage, and only partially enable, the writing of software using a functional approach.

Re:In many ways PHP is just now starting to come into its own by Shorel on Saturday August 24, 2013 @11:26AM (#6268882)
According to you, is Common Lisp functional?
Re:In many ways PHP is just now starting to come into its own by PommeDeTerre on Saturday August 24, 2013 @11:39AM (#6268912)
I wouldn't say so. It's far, far closer to a functional programming language than JavaScript is, for instance. But it's clearly nowhere near what Haskell or Standard ML are, either.

Maybe "semi-functional" would be a good term for it and Scheme. It has some of the important elements of functional programming, but not all of them.