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

Break tuples with container in first position #259

Merged
merged 7 commits into from
Mar 29, 2021
Merged

Conversation

michalmuskala
Copy link
Member

This is still work in progress.

This changes how tuples are laid out when the first element is a complex term - they are printed like lists and other containers. The main use-case for the "flex" tuple layout we used before was to support nicely printing tagged tuples - this is not changed.

Fixes #153

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 17, 2021
@awalterschulze
Copy link
Member

  • Tuples inside tuples are no tightly coupled {{A}} with no_break in between, which means tuples inside tuples do not have a weird indentation, see the is_container function
  • When the first element in a tuple is not a tag, the tuple is now formatted as if it was a list, see the is_tag function.

@michalmuskala michalmuskala merged commit 1d56a5e into master Mar 29, 2021
@michalmuskala michalmuskala deleted the flex_container branch March 29, 2021 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tuples: Deeply nested tuples get formatted strangely
3 participants