2 ms·
Actually, that's Uniform Function Call Syntax http://www.drdobbs.com/cpp/uniform-function-call-syntax/232700394 http://www.drdobbs.com/cpp/uniform-function-call
by Shorel 12y ago
Actually, that's Uniform Function Call Syntax
http://www.drdobbs.com/cpp/uniform-function-call-syntax/232700394 http://www.drdobbs.com/cpp/uniform-function-call-syntax/2327...
And it doesn't make a language 'dynamic'. The language I found with UFCS is both static and compiled.
- agumonkey 12y agoThat's not what I meant. PHP code was built around its SPL, if they accept nikic proposal, people will code using base types with similar operations set found in many dynamic languages. What's left is [1,2,3]->slice(1,2) versus [1,2,3].slice(1,2) ps: dynamic can be compiled and compiled can be interpreted, so I understand that it is unrelated.
- recursive 12y agoWalter notes two advantages of that scheme over extension methods. One of them is that extension methods can not be called with the standard prefix notation. This is not actually true, at least in the languages most known for extension methods, Visual Basic and C#.