-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Remove the square brackets "[" and "]" from the syntax #3679
base: master
Are you sure you want to change the base?
Conversation
In the syntax for array splice method, the square bracket should not be present.
Another question: for slice syntax -> |
It's an old convention for "optional". Mmm... |
Ok, then the splice syntax is correct.But it do look confusing. Should I
|
Hi all, it should actually be |
I like the brackets, the single line is more clear when you know the brackets purpose. But |
It may be worth creating a separate article on this syntax so that people can be introduced to it, or at least provide a link. Unfortunately there isn't much resources on this online, there seems to be no standard. The only relevant discussion about this I can find is https://stackoverflow.com/questions/10925478/how-to-interpret-function-parameters-in-software-and-language-documentation. |
I'd stay with brackets. After "manual and specifications" |
In the syntax for array splice method, the square bracket should not be present.