MichaelS11
MichaelS11
Looks like a bug to me. Another example: ``` package main import ( "fmt" "log" "github.com/mattn/anko/vm" ) func main() { env := vm.NewEnv() err := env.Define("println", fmt.Println) if err !=...
@mattn So for `var rectangle1 = rectangle` the right side is an IdentExpr, which means it is basically calling `env.get("rectangle")`. This is setting `rectangle1` to an *Env which is the...
@mattn I think there would be a difference between `rectangle1 = rectangle` and `var rectangle1 = rectangle` but they do the same thing, copy the pointer instead of copying the...
I am going to look into this more, see if there is something not too hard to make this work.
The new spec is looking for a type, so would like to look at other options. So having a module named a, like: `module a { b = 1 }`...
@mattn What you think?
So rename module to class? Have some details on what you would like?
Yes it does. https://golang.org/pkg/reflect/#StructOf Sounds like we just need to support struct better and that should work instead of classes.
Ok, so deprecate modules and add better support for structs.
@mattn What about this PR https://github.com/mattn/anko/pull/322 for now?