# sum_tree: Do not implement Dimension on tuples, use new Dimensions wrapper instead \(\#35482\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/07e3d53d58b5fad7d267d71556a96ffd41b4108e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 07e3d53d58b5fad7d267d71556a96ffd41b4108e

Requested commit: 07e3d53d58b5fad7d267d71556a96ffd41b4108e

Commit: 07e3d53d58b5fad7d267d71556a96ffd41b4108e

Tree: f50c8e4766afecd039747f6f34e21df05142cd6f

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
sum_tree: Do not implement Dimension on tuples, use new Dimensions wrapper instead (#35482)

This is a bit of a readability improvement IMHO; I often find myself
confused when dealing when dimension pairs, as there's no easy way to
jump to the implementation of a dimension for tuples to remind myself
for the n-th time how exactly that impl works. Now it should be possible
to jump directly to that impl.

Another bonus is that Dimension supports 3-ary tuples as well - by using
a () as a default value of a 3rd dimension.


Release Notes:

- N/A
```

## Parents

- [be2f54b2339b502cd6aee6a3b03b549768f9a9b0](https://git.cafe/gitcafe/zed/commit/be2f54b2339b502cd6aee6a3b03b549768f9a9b0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/07e3d53d58b5fad7d267d71556a96ffd41b4108e?format=markdown)
