Hacker News new | ask | show | jobs
by gpderetta 2010 days ago
In C++ you can create a simple generic reusable currying wrapper. Boost as a few. The reality is that the vast majority of C++ programmers don't see the need.
1 comments

Trying to do this this through Currying turns a simple 2D array access into a quite complicated operation. One that a compiler has to be really smart to turn into a gheap 2D array indexing operation again. This really matters in number-crunching code, where it seems that almost everything is about multiplying arrays.
Of course it wouldn't make much sense to do it for indexing. I was discussing currying as a generally useful tool.