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: Use Go min/max builtins #4620

Closed
wants to merge 1 commit into from

Conversation

tklauser
Copy link

@tklauser tklauser commented May 21, 2024

The min and max builtins are available since Go 1.211. The github.com/antlr4-go/antlr/v4 is specifying Go 1.22 in its go.mod file, so the builtins can be used.

Footnotes

  1. https://go.dev/doc/go1.21#language

The min and max builtins are available since Go 1.21[^1]. The
github.com/antlr4-go/antlr/v4 is specifying Go 1.22 in its go.mod file,
so the builtins can be used.

[^1]: https://go.dev/doc/go1.21#language

Signed-off-by: Tobias Klauser <[email protected]>
@tklauser tklauser force-pushed the go-min-max-builtins branch from 14a8984 to 5d979f2 Compare May 21, 2024 15:35
@tklauser
Copy link
Author

The go.mod in this repo still specifies Go 1.20:

Which obviously this PR is not compatible with. I got confused because https://github.com/antlr4-go/antlr is using Go 1.22:

https://github.com/antlr4-go/antlr/blob/4d7e18847d8881a176db3d7cca909e3f3942a05f/go.mod#L3

Closing for now.

@tklauser tklauser closed this May 22, 2024
@tklauser tklauser deleted the go-min-max-builtins branch May 22, 2024 08:18
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.

1 participant