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

[STYLE] Rename "bracket" to "parentheses" #364

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

itislu
Copy link
Collaborator

@itislu itislu commented Jul 23, 2024

  • Parentheses: ( )
  • Brackets: [ ]
  • Braces: { }

All of them mean something different for bash ofc. In bash's documentation they use the same terminology.

Leaving it as it is with bracket is confusing when going through the code and you start to wonder if we handle [ ], which we don't.

I guess you can name all of them brackets, but since we have support for both parentheses ( ) and braces { }, using the term in a general way is just not very clear.

@itislu itislu added the chore A routine task label Jul 23, 2024
@itislu itislu linked an issue Jul 23, 2024 that may be closed by this pull request
@itislu itislu force-pushed the style-bracket-to-paren branch 2 times, most recently from 8393e15 to fe968ca Compare July 24, 2024 00:55
Copy link
Owner

@LeaYeh LeaYeh left a comment

Choose a reason for hiding this comment

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

Need to modify python code

@itislu itislu force-pushed the style-bracket-to-paren branch from fe968ca to 02bc484 Compare July 24, 2024 23:59
@LeaYeh LeaYeh force-pushed the style-bracket-to-paren branch from 02bc484 to 036a4cc Compare July 28, 2024 14:09
@itislu itislu force-pushed the style-bracket-to-paren branch from 036a4cc to e7297ad Compare August 7, 2024 03:05
- Parentheses: `( )`
- Brackets: `[ ]`
- Braces: `{ }`

All of them mean something different for bash ofc.
In bash's documentation they use the same terminology.

Leaving it as it is with bracket is confusing when going through the code and you start to wonder if we handle `[ ]`, which we don't.

I guess you can name all of them brackets, but since we have support for both parentheses `( )` and braces `{ }`, using the term in a general way is just not very clear.
@itislu itislu force-pushed the style-bracket-to-paren branch from e7297ad to 646df74 Compare August 12, 2024 09:54
@itislu itislu merged commit ddda21d into main Aug 12, 2024
39 checks passed
@itislu itislu deleted the style-bracket-to-paren branch August 12, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A routine task
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[STYLE] Rename "bracket" to "parentheses" in code
2 participants