SE-0348: buildPartialBlock for Result Builders

For ViewBuilder, a variadic-generic buildBlock could also be a good fit as it would return a TupleView of a flat tuple, which is consistent with buildBlock overloads’ return types today. That said, this proposal was also motivated by highly generic APIs such as regex builder, which, as mentioned in alternatives considered, cannot be implemented with just variadic generics.

4 Likes