Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text rendering for Pretty? #153

Open
ceedubs opened this issue Apr 28, 2023 · 1 comment
Open

Text rendering for Pretty? #153

ceedubs opened this issue Apr 28, 2023 · 1 comment

Comments

@ceedubs
Copy link
Contributor

ceedubs commented Apr 28, 2023

It feels a little odd to me that Pretty is in base but there doesn't really seem to be any way to render it to Text. Should a render exist (or be exposed if it already exists)? It seems like it could be useful for pretty-printing structures like JSON, custom ASTs, etc.

@timjs
Copy link

timjs commented Oct 27, 2024

I'm also puzzled by this. Trying to pretty print an AST, and I'm missing a "default" text renderer. Any ideas about including this?

In the same category, ConsoleText also doesn't seem to have a way to render or print it to the console.

Maybe a way to render Pretty in a watch expression would be a start?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants