DIP 1053 - A Tale of Tuples
If you’ve used D for any significant length of time, you know that the tuple situation is pretty convoluted. There are built-in tup- err… compile time sequences , a library-level wrapper around these sequences called std.meta.AliasSeq , and a second , and subtly different, library level wrapper in std.typecons.Tuple . Though together these constructs get the job done, the ergonomics can be pretty clunky, to say the least. You’re often stuck accessing elements by index ( t[0] , t[1] , etc.), or giving them n
评论
?
参与讨论