In a language like c++, what would be an elegant naming convention to differentiate between pure functions and others?
In a language like c++, what would be an elegant naming convention to differentiate between pure functions and others?
His criticism is pretty fair, too - far more substance than a dozen "oh wow, look at how small quicksort / fibonacci is" blog posts.
[0] http://www.st.cs.uni-saarland.de/edu/seminare/2005/advanced-...
- Jax and Daxter (and Crash Bandicoot): http://ynniv.com/blog/2005/12/lisp-in-games-naughty-dogs-jax... - Abuse: http://en.wikipedia.org/wiki/Abuse_(computer_game) - Lua (even though it is not strictly functional) is used quite a bit throughout the game industry.
A single programmer (who could easily be one of the top ten Lisp programmers in the world) wrote GOAL. While he called his Lisp techniques and programming practices "revolutionary," others referred to them as "code encryption," since only he could understand them.
So we found one example, and it didn't prove FP is beneficial to productivity.
Interestingly, you can also say that Cobol has been proven to work for business applications over and over. And people build successful websites with PHP.
D is a bit like C++. And its type system supports pure functions. I don't know if there's a standard naming convention, but D is worth a look.