
26 Aug
2011
26 Aug
'11
6:51 p.m.
On 8/26/2011 1:46 PM, Thomas Heller wrote:
I additionally have some problems in thinking about possible semantics:
auto g = f(_, y, z); // pretend that f is a curryable function
If f has a 4th argument, the above returns a binary function and ...
auto h = g(1); // same as f(1, y, z)? what if f had a 4th argument?
... that returns a unary function, same as f(1, y, z).
As much as i like the idea, i can almost always construct trivial usecases where the proposed syntax is ambiguous.
It's not ambiguous, AFAICT. -- Eric Niebler BoostPro Computing http://www.boostpro.com