* レミリア・スカーレット <valent.xa...@gmail.com> [200427 12:46]: > Why you need to write a "func sum(a, b int) int {...}", not "sum(a, b int) > int {...}"? > It seems to me that one could do without func keyword.
I believe another reason is that the Go language designers decided that every top-level syntax element begins with a keyword: package, import, type, const, var, func. Perhaps this is just for convenience of parsing, but it greatly simplifies human parsing (readability) as well. ...Marvin -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/20200427191520.j5oscp5o6osuc2zv%40basil.wdw.