Hacker Newsnew | comments | show | ask | jobs | submitlogin

> Cleaning up some statefull functors

This makes no sense at all. A functor is a type class, it doesn't contain any state.




In Haskell, it makes no sense, agreed.

In C++, it makes sense: http://www.sgi.com/tech/stl/functors.html. Functors are function objects, which is to say they're a class/struct with one method, operator().

If this makes you sigh, know that you're not alone.

-----




Applications are open for YC Summer 2015

Guidelines | FAQ | Support | API | Lists | Bookmarklet | DMCA | Y Combinator | Apply | Contact

Search: