News for hackers. Stuff that matters.
Re:What's wrong with Object-Oriented Programming and Functio... by eru on Tuesday November 12, 2013 @05:43AM (#6716987)
D actually has a better model for pure functions than C++. See http://dlang.org/function.html#pure-functions
Re:What's wrong with Object-Oriented Programming and Functio... by luikore on Wednesday November 13, 2013 @03:19AM (#6723999)
Modern C/C++ compilers can detect a sub set of pure functions and do possible aggressive optimisations. There's even an `__attribute__ ((pure))` in GCC for explicit pureness.