[cfe-dev] uniform call syntax

clang c walterh95 at yahoo.co.uk
Fri Oct 31 13:08:55 PDT 2014


Could anyone who knows Clang comment how hard it would be to implement this (where would one start..) the desired feature is the ability for a method call a.f(b) to fall back to any suitable free-function f(a,b), for reasons explained in the first paper.
Has anyone tried to implement this already?

With this you don't have to choose between the superior decoupling of free functions & the superior autocomplete/function chaining of methods. Having to make this arbitrary choice is C++'s biggest frustration for me

http://isocpp.org/files/papers/N4165.pdf


http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4174.pdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141031/6d65d5fb/attachment.html>


More information about the cfe-dev mailing list