Toot

Written by Francisco Tolmasky on 2024-11-22 at 18:43

In Swift Is it actually impossible to know how many items a tuple TYPE (not instance), has? I just want, given some tuple type T (like (A, B, C)), to do tupleLength(T.self) and have it return the right number. Again, not an instance like (1,2,3), the type. It seems parameter packs almost let you do this but not completely. I can't believe this isn't possible.

=> More informations about this toot | View the thread | More toots from tolmasky@mastodon.social

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113528080409531925
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
226.470158 milliseconds
Gemini-to-HTML Time
0.43469 milliseconds

This content has been proxied by September (ba2dc).