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

Shorter type error messages #975

Merged

Conversation

RunDevelopment
Copy link
Member

Changes:

  • Type comparisons (e.g. The type X is not connectable with type Y.) are now shorter. If X or Y is a struct and the other is either an incompatible struct or a primitive type, then all struct fields will be omitted. This makes error messages with structs shorter and easier to understand because it removes a lot of noise.
  • Pretty print types. I added a function to pretty print types. While it currently just replaces some int intervals with "int" or "uint", we might want to add more to this later.

image
image

(Note how all fields of the image type are omitted.)

@joeyballentine joeyballentine merged commit 251363b into chaiNNer-org:main Sep 16, 2022
@RunDevelopment RunDevelopment deleted the shorter-type-traces branch September 16, 2022 13:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants