3 ms·
I don't think I understand your first point. The type for main would be func(int, *[]byte) int which reads left to right. The function definition syntax isn
by supersillyus 16y ago
I don't think I understand your first point.
The type for main would be
func(int, *[]byte) int
which reads left to right.
The function definition syntax isn't as left to right, but it's hardly complicated or confusing.
I think your points may be valid, but I don't think they lead to your conclusion that Go's syntax fails at its stated mission.
- igravious 16y agoCorrect. The _type_ for main would be (is) func(int, *[]byte) int but the function _declaration_ should be (by the logic of the article and the stated intentions of their design decisions) main func(argc int, argv *[]byte) int and not func main(argc int, argv *[]byte) int because the variable name should come first as in x int and not int x In this way I fee that they have, if not failed, at least deviated from their stated or implied mission. But you're right, the type reads left to right.