--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/b49dc8c2-26ea-46bc-b76a-708a2537207cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/56d23af2-b3dd-4c59-86d4-d14d56e73a93n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/68e7ec15-5b55-4d72-b12d-fa9bcab282edn%40googlegroups.com.
Looking into the spec:ExpressionList = Expression { "," Expression } .... no () hereFunctionType = "func" Signature .Signature = Parameters [ Result ] .Result = Parameters | Type .Parameters = "(" [ ParameterList [ "," ] ] ")" .ParameterList = ParameterDecl { "," ParameterDecl } .ParameterDecl = [ IdentifierList ] [ "..." ] Type .... a Type does not need () but Parameters needs them.But now I am puzzled. I can actually omit the variable name for the arguments: https://play.golang.com/p/g4Sz8rh06QW.This seems to be useless, but it is actually allowed, right?
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALWqRZrEg0GremjRjwVWMKPLPWyTOkpf5Ev0-x%2BGmkvU_rPs_Q%40mail.gmail.com.