Anyone want to help me figuring out the color for a bikeshed?
Uchar.t currently lacks a default printer for
ppx_deriving.show — indeed, it’s practically the only thing in the standard library that doesn’t have such a printer. I’d like to do a pull request to add one. Writing the code is easy, but figuring out what the default printed representation should look like is not obvious, because there’s no read syntax for
Uchar.t in OCaml currently.
I’d like to pick something that might even be a good candidate for a read syntax someday, so thoughts on a good one are actively solicited. I don’t want what I pick to suck, inspire the addition of that syntax to the language itself, and then end up living for a long time even though it sucks.
So, any suggestions? One complexity is that
Uchar.t can store things that don’t print out very well, like zero-width joiners, combining characters, etc.
See also the discussion at https://github.com/ocaml-ppx/ppx_deriving/issues/174