Re:Ballerina: A Data-Oriented Programming Language
by jcelerier on Thursday May 12, 2022 @06:10AM
(#31351685)
I imagine this creates a std::tuple, which causes a lot of template instantiations and is the main offender for debug compile-times though. But yes, that's pretty much what I'm looking for :-)
Re:Ballerina: A Data-Oriented Programming Language
by gpderetta on Thursday May 12, 2022 @06:26AM
(#31351822)
It is not an std::tuple, but the moral equivalent. I haven't tested the compile time beyond trivial tests, but it not going to be great. The $ macro itself expands to a non-trivial amount of code.
(No, I do not use it in production, it is mostly a fun curiosity, but yes, I wish lightweight named tuples were part of the language).