We are forking D

Timon Gehr timon.gehr at gmx.ch
Tue Jan 9 12:02:22 UTC 2024


On 1/9/24 00:15, Walter Bright wrote:
> On 1/8/2024 7:50 AM, Nick Treleaven wrote:
>> Wouldn't you just use `std.typecons.Tuple`?
> 
> I never really understood Tuple. It creates a struct that behaves like a 
> tuple.

- It is a proper type.
- It can be used to create ad-hoc groups of values when using generic code.
- It does not expand unless the user asks for it.
- It can be put in data structures.
- It can be returned from functions.
- It has an address.

etc.


More information about the Digitalmars-d mailing list