Shared publicly  - 
 
I was just reading this interesting article by John Carmack on writing C++ with a "functional" style. In the article he makes a strong argument for writing pure functions, and talks a bit about what that means in a practical sense (in other words, how "pure" do you really need to be?) and why it's useful even though it's not a language requirement or checked by the compiler.

I guess it just goes to show that the old maxim is true: A good programmer can write Fortran code in any language. (Fortran's had a "pure" keyword for 17 years now.)
1
Stefan Seefeld's profile photo
 
Every C++ programmer using meta-programming techniques is using a "functional" paradigm.
As with natural languages, it's very interesting to look at how certain thoughts / memes / idioms are expressed in different languages, and how much syntax helps or gets into the way in each case.
In that line of thought, it was quite revealing to map a bit of C++ meta-programming into Haskell, where the same logic became just so much simpler to express...: http://bartoszmilewski.com/2011/07/11/monads-in-c/
(Now that gives "pure" an entirely different meaning ;-) )
Add a comment...