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

feat[next]: Change interval syntax in ITIR pretty printer #1766

Conversation

tehrengruber
Copy link
Contributor

We currently use ) in the pretty printer to express an open interval. This is quite cumbersome when debugging the IR because it breaks matching parenthesis in the editor of functions and calls, e.g. when does a function start and end. This PR simply uses [ instead.

Copy link
Contributor

@havogt havogt left a comment

Choose a reason for hiding this comment

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

lgtm, once errors are resolved

@havogt
Copy link
Contributor

havogt commented Dec 6, 2024

Actually, what about using (a,b) and say it's Python range semantics?

@tehrengruber tehrengruber merged commit 9888905 into GridTools:main Dec 10, 2024
31 checks passed
@egparedes
Copy link
Contributor

@tehrengruber I know this PR has been already merged but in my opinion this looks really terrible, just like a bug. Why not using a different right bracket unicode symbol for this? For example:

[⟧  [⧽  [〗[⁆  [】[⦊  [⦈

I found a longer list of options here: https://stackoverflow.com/a/13535289

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.

3 participants