cgmath icon indicating copy to clipboard operation
cgmath copied to clipboard

Display for vectors.

Open quadrupleslap opened this issue 6 years ago • 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?

quadrupleslap avatar May 24 '18 13:05 quadrupleslap

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?

brendanzab avatar May 30 '18 12:05 brendanzab

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.

quadrupleslap avatar May 31 '18 11:05 quadrupleslap