Unrepl / unravel

Unravel your REPL
171 stars 6 forks source link

Characters shown as strings #62

Open pesterhazy opened 6 years ago

pesterhazy commented 6 years ago
user=> \x
"x"

Expected:

\x

We should read characters as a defrecord that prints like \x

cgrand commented 6 years ago

easier said than done: the reader doesn't allow this customization. Fork the reader or fork unrepl.

pesterhazy commented 6 years ago

Seems like something that should really be fixed on the client side (the server does the right thing here).

On Tue, Dec 19, 2017 at 4:43 PM, Christophe Grand notifications@github.com wrote:

easier said than done: the reader doesn't allow this customization. Fork the reader or fork unrepl.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Unrepl/unravel/issues/62#issuecomment-352796660, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGfWC4ETQpm1Ar0Ce63AYoIKgOn0LYsks5tB9mSgaJpZM4RHJE5 .

cgrand commented 6 years ago

I can imagine an option (e.g. --reader-ate-types to the blob builder to customize the printer). That's the low road; (this semicolon was a comma originally ;-)) the high road being to "fix" the reader.