On 6/8/19 10:07 PM, lgod...@gmail.com wrote:
> Here a specific example:
>
> The following compiles and runs as expected
> m1x,m1y := ec.scalarMult(16,28,33)  
> m2x,m2y := ec.scalarMult( 1,28,33)
> rx,ry := ec.add (m1x,m1y, m2x, m2y)
>
>
> However this stmt :    rx,ry= ec.add(ec.scalarMult(16,28,33),
> ec.scalarMult( 1,28,33))  gives the following compiler error ...
>
> # command-line-arguments
> .\ECurve.go:272:14: not enough arguments in call to ec.add
> .\ECurve.go:272:28: multiple-value ec.scalarMult() in single-value context
>
This is a VERY different case than the overly-simplified example you
posted earlier.

Jan Mercl has already posted the part of the Go language spec that
mentions this, so I'll just note that this was raised almost 10 years
ago, and Rob Griesemer explained why it was a Bad Idea to allow it here:
https://github.com/golang/go/issues/973#issuecomment-142733515

-- 
Best Regards,
Adrian

-- 
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/422d6f3a-4c79-fd8e-ad50-4d217f37728f%4003s.net.

Reply via email to