News for hackers. Stuff that matters.
Re:Swift 6 by paperplatter on Wednesday September 18, 2024 @12:17AM (#41575737)
Also, is anyone familiar with the weirdness with tuples in Swift? All I remember is they never worked the way I expected, and for some reason something in our code specifically worked for tuples up to size 5.
Re:Swift 6 by plorkyeran on Wednesday September 18, 2024 @01:24AM (#41576086)
Swift only got variadic generics fairly recently, and before that you couldn’t write code which was generic over tuple size. Instead you had to codegen versions for each size of tuple you needed to support.
Re:Swift 6 by paperplatter on Wednesday September 18, 2024 @12:58PM (#41582408)
I think that was it. There was also something about tuples inside of dictionaries that Swift 1 or 2's compiler segfaulted on.