Caleb Cartwright
Caleb Cartwright
I'd have to go back through everything in detail, but I'd assume `.d` is wrapped due to this other prescription for chain formatting: > If the length of the last...
> I think that rule is just to prevent a gap like Yes, the rule does prevent that scenario, but the style guide rules don't get applied subjectively; it's true...
Thanks for sharing your perspective @terhechte! @camsteffen is correct about the binops though, so that wouldn't be an available option anyway
While I understand the angle around visual scanning, I'm concerned that option 2 (always wrap) is a bit too blunt an instrument where something more surgical would be helpful. A...
> In real code using let-chains, what is the distribution of the horizontal position of let? Agreed! Not sure there's a good way to systematically inspect, but even getting feedback...
> Feature stabilization in the language being blocked on formatting decisions seems like an unfortunate situation to me. To be clear, feature stabilization is _not_ blocked on formatting and I'm...
> I'm more interested in stabilizing this sooner than in continuing the bikeshedding. We need greater alignment between the formatting and language processes to provide more expeditious timing and a...
The more I think about this the more I feel that option 1 (do nothing) is the best approach for default behavior. I think it will be the most consistent...
Correct me if I'm wrong, but strictly from an AST perspective let chains are simply a Binary expression that has at least one Let expression as an operand somewhere within...
As for chains/let expr in a binary expr, do we perhaps need to revisit the rules for binary expressions more broadly? Do we need more aggressive and/or complex wrapping rules...