On Monday, December 24, 2012 20:43:06 Robert Clipsham wrote: > Is: > > auto foo()(auto ref S e) { /* do stuff */ } > > So hard to write? > > (It's Christmas Eve, and I can't be bothered giving real > arguments against right now - I suppose someone else will do this > later... Merry Christmas!)
If nothing else, it doesn't work for classes, because templated functions can't be virtual. Also, it forces you to put the entire function's implementation in a .di file if you use .di files, which makes it untentable for many of the folks who actually need to use .di files. We need a solution which doesn't involve templates. - Jonathan M Davis