News for hackers. Stuff that matters.
Re:Implementing UFCS for C++ in Clang by Ericson2314 on Monday August 03, 2020 @05:33PM (#24043709)
This acryonym never made sense here or for Rust (where I think the name came from>?). "call" means function applications, but the vast majority of the text is on function declarations.

Fine if new ways of calling things stem from new ways of declaring things, but then let's please name the feature after the root change rather than it's ramifications!

--------

On a different note. I am very excited for C++ to ape Rust features. Please keep doing it. The end result ought to be a lower marginal cost of Clang implementing Rust, in which case we can get really good C++ <-> Rust FFI....and migrate away from C++.

Please, build a bridge from the sinking island.

Re:Implementing UFCS for C++ in Clang by jcelerier on Monday August 03, 2020 @05:47PM (#24043842)
> I am very excited for C++ to ape Rust features.

lol, UFCS was discussed in C++ before Rust even existed. Here's a paper from 2003 that mentions it: https://www.stroustrup.com/N1522-concept-criteria.pdf

the committee is pretty much against it so it won't get into "C++" though. but who cares, clang as a compiler already targets more platforms and has more eyeballs and development than most other languages anyways.

Re:Implementing UFCS for C++ in Clang by identity0 on Monday August 03, 2020 @05:50PM (#24043871)
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.

Re:Implementing UFCS for C++ in Clang by Ericson2314 on Tuesday August 04, 2020 @11:58AM (#24051217)
It 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++).