may be that's the way compiler understand where new function start On Monday, April 27, 2020 at 9:46:20 PM UTC+5, valen...@gmail.com wrote: > > Why is it necessary to write func in go before declaring a function; if in > C, when parsing a function, there is no such need? > Why "func sum(a, b int) int {...}" can't be "sum(a, b int) int {...}" >
-- 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/d8781ced-a875-428b-8f5c-ddfd4f3a0984%40googlegroups.com.