From fb8465c617c7c998be951cbd0e084b495927450a Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Sat, 26 Oct 2024 19:58:38 -0400 Subject: [PATCH] Expand comment --- macro/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macro/src/lib.rs b/macro/src/lib.rs index 612f6acc..bae7153b 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -1031,6 +1031,9 @@ fn args_as_turbofish(args: &Punctuated) -> TokenS // smoelius: The current strategy for combining auto-generated values is a kind of "round robin." // The strategy ensures that each auto-generated value gets into at least one `Args` value. +// smoelius: One problem with the current approach is that it increments `Args` fields in lockstep. +// So for any two fields with the same number of values, if value x appears alongside value y, then +// whenever x appears, it appears alongside y (and vice versa). fn args_from_autos(autos: &[Expr]) -> Expr { let lens: Vec = (0..autos.len()) .map(|i| {