densh / scala-offheap

Experimental type-safe off-heap memory for Scala.
BSD 3-Clause "New" or "Revised" License
532 stars 38 forks source link

Support inlining function literals with multiple arguments, implement Array.foldLeft and Array.foldRight #109

Closed adam-wyluda closed 8 years ago

adam-wyluda commented 8 years ago

Implements #79.

Removed subs parameter in Common.app and appSubs methods since it's not used anywhere. Also I modified Common.app implementation to support inlining of multiple arguments in function literals.

adam-wyluda commented 8 years ago

I thought it might be a better idea to have a single argument list since macro invocations can't be curried. But consistency with standard libraries is a good reason to have it this way, so now it should be correct.

densh commented 8 years ago

LGTM, great job @adamwy !