We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Why can't we declare the multiple dimensions of a multi-dimensional slice from a single make() call?
Isn't squareMatrix := make([][]int, n, n) far simpler than
squareMatrix := make([][]int, n, n)
squareMatrix := make([][]int, n) for row := range squareMatrix { squareMatrix[row] = make([]int, n) }
Is there some underlying reason as to why this isn't done?
The text was updated successfully, but these errors were encountered:
Hi,
This appears to be a question rather than a Go bug. We do not use the issue tracker for general discussions or questions like these.
You might want to take a look at
For further questions, please have a look at Questions wiki page; it has a list of good places for asking questions.
Closing since this is not a bug.
Sorry, something went wrong.
No branches or pull requests
Why can't we declare the multiple dimensions of a multi-dimensional slice from a single make() call?
Isn't
squareMatrix := make([][]int, n, n)
far simpler thanIs there some underlying reason as to why this isn't done?
The text was updated successfully, but these errors were encountered: