Search results for "d5d8a02937b9cd981a61911829859a7c" in md5 (2)

/g/ - Are You Guys Excited For Reflection In C++?
Anonymous No.106305107
>>106303483
>annotations are [[=Annotation]] and not @Annotation (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3394r0.html)
kys bjarne
/g/ - Thread 106252504
Anonymous No.106252504
>be c++ committee
>propose reflection for c++26
>add annotations for reflection so you can attach metadata to symbols
>need a new syntax
>[[...]] already used by attributes which can be ignored by the compiler, have to choose something else which cannot be ignored
>somehow choose [[=...]] instead of @... (java), #[...] (rust), [...] (c#)
>RANDOM ASS EQUALS SIGN
>annotations appear AFTER the type/storage specifier and not before like every sane language does
who the fuck writes these proposals and how does c++ consistently manage to design the ugliest syntax for new features ever conceived? do they all have brain damage or something?
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3394r0.html

see coderel from pdf
struct Args {
[[=clap::Help("Name of the person to greet")]]
[[=clap::Short, =clap::Long]]
std::string name;

[[=clap::Help("Number of times to greet")]]
[[=clap::Short, =clap::Long]]
int count = 1;
};

int main(int argc, char** argv) {
Args args = clap::parse(argc, argv);

for (int i = 0; i < args.count; ++i) {
std::cout << "Hello " << args.name << '\n';
}
}