News for hackers. Stuff that matters.
Re:Translating Haskell to C++ metaprogramming by theseoafs on Sunday July 12, 2015 @10:29PM (#9876041)
It is equivalent to the second, not the first. The first is a completely distinct type -- though you can certainly write a function with that type, given the original function, by uncurrying it.
Re:Translating Haskell to C++ metaprogramming by saurik on Monday July 13, 2015 @01:13AM (#9876540)
FWIW, I think the person you are responding to is using the non-Haskell requested mental syntax used by the person who asked the original question, in order so they better understand the semantics (even if at a cost of confusing them for later development in Haskell).
Re:Translating Haskell to C++ metaprogramming by Nullabillity on Monday July 13, 2015 @06:11AM (#9877207)
Yup. They're distinct types, but mentally they are the same (and the standard library has functions to convert between the two forms).