4 ms·
It's called "uniform function call syntax" because it comes from D unifies function calling between member functions and free functions. It's not called "unifor
by identity0 6y ago
It's called "uniform function call syntax" because it comes from D unifies function calling between member functions and free functions. It's not called "uniform function declaration syntax" because the declarations are obviously not unified. The fact that you have to declare functions shouldn't be relevant to the name.
And of course rust people found a way to make this all about rust. I highly doubt the Clang devs are thinking "hmm we're really close to compiling rust but we just can't figure out UFCS." And C++ is not at all a sinking island.
- Ericson2314 6y agoIt looks like the D version doesn't have a `this` parameter or similar, so this version is absolutely Rust or Python or something inspired. On the other hand that means for D it was named correctly. I have recently been full time writing C++ and yes it is a sinking island. Don't worry, I assume just in time for C++ to migrate to Rust, Rust will also start sinking (and not because of the influx of C++).