Y
Hacker News
new
|
ask
|
show
|
jobs
by
eru
4607 days ago
D actually has a better model for pure functions than C++. See
http://dlang.org/function.html#pure-functions
1 comments
luikore
4606 days ago
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.
link