Skip to content

Layouts (stage 4): print layouts of type variables in a comment when the user asks twice#32

Merged
ncik-roberts merged 15 commits intomainfrom
layouts4-try3
Dec 12, 2023
Merged

Layouts (stage 4): print layouts of type variables in a comment when the user asks twice#32
ncik-roberts merged 15 commits intomainfrom
layouts4-try3

Conversation

@ncik-roberts
Copy link
Copy Markdown
Contributor

As discussed internally. When the user queries a type expression twice, we print (* 'a_1 : layout_1, ..., 'a_n : layout_n *) for all type variables 'a_i with non-boring layout layout_i.

Note: type variables are printed in the reverse order from what you'd expect. This is a general issue with type printing in flambda-backend; I'll post a PR there rather than fixing it in this PR.

Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Base automatically changed from layouts1 to main December 11, 2023 15:51
@ncik-roberts ncik-roberts requested review from alanechang and removed request for goldfirere December 11, 2023 15:52
Copy link
Copy Markdown

@alanechang alanechang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! Left some comments related to implementation details.

Signed-off-by: Nick Roberts <nroberts@janestreet.com>
Signed-off-by: Nick Roberts <nroberts@janestreet.com>
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