Hacker News new | ask | show | jobs
by Animats 2010 days ago
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.
1 comments

Of course it wouldn't make much sense to do it for indexing. I was discussing currying as a generally useful tool.