Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

ast::Type pretty printer 💅 #165

Open
jmackie opened this issue Jan 6, 2023 · 0 comments
Open

ast::Type pretty printer 💅 #165

jmackie opened this issue Jan 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jmackie
Copy link
Member

jmackie commented Jan 6, 2023

Stop using debug_render and write proper formatting logic.

Probably belongs in ditto-fmt (e.g. ditto_fmt::format_type).

There should be a heuristic for unnamed type variable formatting that attempts to assign them single letter names (a, b, c, ...) avoiding collisions with existing named variables.

Types should ideally be printed with consideration for their typing Environment - i.e. they should be rendered as they would appear in the module source given the imports.

Use it for type errors, the LSP #142, generated docs #63 etc.

@jmackie jmackie added the enhancement New feature or request label Jan 6, 2023
@jmackie jmackie changed the title Pretty print types ast::Type pretty printer 💅 Jan 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant