On Do, 2016-08-11 at 03:55 -0700, Jason E. Aten wrote:
> I'm trying to use parser.ParseExpr. I'm thinking "var a = 9" is a
> valid expression, but ParseExpr returns an error:
> 
hi jason, 
a variable declaration is a statement and not an expression.

when in question on this matters take a look at the spec.it is very
well written and readable as far as language specs go.

https://golang.org/ref/spec
i hope this helps

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to