Skip to content
Discussion options

You must be logged in to vote

Why does the formatter and/or the compiler allow both parentheses and no parentheses?

Because there's no way to know if it's safe to remove parens without performing type checking. It's recommended not to use parens.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bobjoe12131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants