BinaryByter
❤️
mhh I don't remember wether it was you 💜
klimi
purple
BinaryByter
you are a good boy anyway
BinaryByter
#friendzoned >:D
klimi
UwU blue is best tho
klimi
BinaryByter
💙
klimi
ot af
BinaryByter
meh lets not care for once
klimi
"ONCE"
BinaryByter
¯\_(ツ)_/¯
klimi
BinaryByter
xD
Ибраги́м
IMAGINE YOUR NEXT C++ LOOK LIKE: auto tup = std::make_tuple(0, ‘a’); for... (auto& elem : tup) // Expansion statements elem += 1; [[assert: tup == make_tuple(1, ‘b’)]]; // Contracts
BinaryByter
wait
BinaryByter
what would for ... do?
BinaryByter
what would you do with [[ assert: ]]? would that be a kind of static asser thing?
BinaryByter
Ибраги́м
contracts?
https://dlang.org/spec/contracts.html
Ибраги́м
2 minutes read
BinaryByter
i mean C++ has asserts already
BinaryByter
or static asserts
Ибраги́м
i mean C++ has asserts already
But i doesn't have [[expects: f > 2]] void open(int f) { }
BinaryByter
which
BinaryByter
is sad
BinaryByter
WE NEED CONTRACTS
BinaryByter
WELKRFJ YALÖSWOKDJHFPÖ-OU
BinaryByter
WE NEED FUCKING CONTRACTS
Ибраги́м
WE NEED FUCKING CONTRACTS
You understand it now ?
BinaryByter
You understand it now ?
WE NEED FUCKING CONTRACTS RIGHT NOW
BinaryByter
for... ?
what does for... do?
Ибраги́м
what does for... do?
It's called "Expansion statements", just added in recent San Diego meeting.
BinaryByter
what does it do?
Ибраги́м
Wait a minute
BinaryByter
okay
Ибраги́м
This paper proposes a new kind of statement that enables the compile­time repetition of a statement for each element of a tuple, array, class, parameter pack, or range.
Ибраги́м
Any facility that needs to traverse the elements of a heterogeneous container inevitably duplicates this kind of repetition using recursively instantiated templates, which allows some part of the repeated statement to vary (e.g., by type or constant) in each instantiation.
Ибраги́м
While this behavior can be encapsulated in a single operation (e.g., Boost.Hana’s for_each template), there are a number of reasons we would prefer language support. First, repetition is a fundamental building block of algorithms. We should be able to express that concept directly rather than through recursively instantiated templates.. Second, we’d like that repetition to be as inexpensive as possible. Recursively instantiating templates generates a large number of template specializations, which can end up consuming a lot of compiler memory and compile time. Finally, we’d like the ability to “iterate” over both destructible classes and parameter packs, and both effectively require language support to implement correctly.
BinaryByter
PARAMETER PACK LOOPSSSS
BinaryByter
❤️❤️❤️❤️❤️❤️❤️❤️
BinaryByter
BinaryByter
would make this wayy less ugly
Ибраги́м
Haha
Ибраги́м
Let me give u the cookie
klimi
i want cookie too
Ибраги́м
for... (auto x : make_tuple(0, ‘a’, 3.14)) std::cout << x;
BinaryByter
i
BinaryByter
love
BinaryByter
this
BinaryByter
this
BinaryByter
is
BinaryByter
so
BinaryByter
beautiful
BinaryByter
❤️❤️❤️❤️
Ибраги́м
read the full paper here: https://wg21.link/P1306
Ибраги́м
This is one of the better things THE COMMITTE has done in the last few years
BinaryByter
if only they could fucking add network
Ибраги́м
BinaryByter
same
MB_M_7777
Any twitch canal c++ is recommended?
See
What is the best option recursivity or loops
Tharun
Thank q
Anonymous
Hi
Anonymous
hi, how i can read the spaces from a string?
Anonymous
hey
Anonymous
can i use c in web development
olli
can i use c in web development
You can write code that generates websites in any language. The output must be HTML.
Anonymous
Thanks.....
Brandy
which is the best ide for c/c++
Talula
VSC
Talula
If you want only the editor or VS C++ for C++.
Talula
Community edition is free.
Brandy
thanks
schoffal.com
Hello. Am I able to ask anything about C language in this group. I mean to help me find the solution if I got error on my code. The pinned message look really strict 🤐
Anonymous