Skip to content

Simplified printed structs by omitting default fields#2003

Merged
joeyballentine merged 1 commit intochaiNNer-org:mainfrom
RunDevelopment:simply-printed-structs
Jul 28, 2023
Merged

Simplified printed structs by omitting default fields#2003
joeyballentine merged 1 commit intochaiNNer-org:mainfrom
RunDevelopment:simply-printed-structs

Conversation

@RunDevelopment
Copy link
Member

We don't need to show struct fields that are the declaration type of that fields. E.g. Image and Image { width: int(1..), height: int(1..), channels int(1..) } communicate the exact same type, but the former is a lot less noisy. Struct fields that are their declaration type can safely be hidden, because they don't contain any information.

This should make doc types are lot more user-friendly.

Details Examples

image
image
image
image
image
image
image

@joeyballentine joeyballentine merged commit aa8fb81 into chaiNNer-org:main Jul 28, 2023
@RunDevelopment RunDevelopment deleted the simply-printed-structs branch July 28, 2023 13:09
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.

2 participants