MichaelS11

Results 40 comments of MichaelS11

So t1 and t2 are new instances of Foo however the functions still point to the orginal variable x. I will think about it some more but I don't think...

Could we put the AnonCallExpr and CallExpr in vmExprFunction.go then be able to use it from` case *ast.DeferStmt` as well as the current places: ``` case *ast.AnonCallExpr: return anonCallExpr(e, env)...

I still wonder if some of this code is not needed. Say they do defer something that is not a function, like `a++`. If that is passed to say anonCallExpr...

Was curious, is it an issue if the code can defer any expression, not just functions?

Is there a particular reason why rand.Float64() will not work for you? Or was this a feature request to add default arguments in general? https://github.com/mattn/anko/blob/master/builtins/math/rand/rand.go https://golang.org/pkg/math/rand/#Float64 Make sure to seed...

While this would be nice to have, I personally think that Go would need to be able handle optional arguments in order for Anko to have them. From what I...

This can be handled by using variadic functions. There are lots of Go threads about this topic and similar topics. I can understand why it is wanted but from what...

IMO, the toX functions in core should be "moved" into vm. I personally just haven't gotten to it yet. Was probably going to look at changing them to the convert...