LLM's think we should have language tuples!
Timon Gehr
timon.gehr at gmx.ch
Fri Apr 4 18:41:12 UTC 2025
On 4/4/25 18:16, Nick Treleaven wrote:
> On Friday, 4 April 2025 at 15:39:02 UTC, Nick Treleaven wrote:
>> Actually it requires `import std.typecons;` otherwise you get:
>>
>> ```
>> /home/nick/os/tupdip.d(6): Error: undefined identifier `std`
>> auto (x, y, z) = (1, 2, 3);
>> ^
>> ```
>> Probably that should be automatic.
>
> https://github.com/tgehr/dmd/pull/1
>
> I'll look at doing the same for tuple types.
Thanks! Though perhaps forwarding to `std.typecons.tuple` may not be
what we end up doing in the end.
More information about the Digitalmars-d
mailing list