On Monday, 27 April 2020 18:46:20 UTC+2, 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 {...}"
>

Of course it could be like that. But why should it be
like that? Is there any benefit? Did you think it through?
How about methods and function literals? Is the grammer
still non-ambiguous?

V.

-- 
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/c9a21f34-3adf-4313-9f3c-64b49536609f%40googlegroups.com.

Reply via email to