rustgd/cgmath

Display for vectors.

quadrupleslap opened this issue · 2 comments

Can I submit a pull request implementing Display on vectors where their type parameter is also Display? And if I can, should I use ⟨1, 0, 0⟩, [1, 0, 0] or (1, 0, 0) for the brackets?

Tricky thing about the Display impl is it can be pretty context-dependent. Sometimes it's better to make a custom wrapper struct (with its domain-specific impl of Display) that you only use when making other Display implementations.

We could however improve the debug output to make it look prettier? Would that help?

How about modifying the "pretty" Debug output (the one with the # modifier)? Removing the class name from the default debug output might make debugging harder.