[go-nuts] Re: Homoiconic metaprogramming in Go

2018-12-19 Thread Max
As Ian Lance Taylor answered already, Go language and main Go compilers (go and gccgo) do not support this. My unofficial Go interpreter https://github.com/cosmos72/gomacro instead does, I even presented its AST manipulation and code generation facilities (heavily modeled after Common Lisp) at

[go-nuts] Re: Homoiconic metaprogramming in Go

2018-12-17 Thread Jason E. Aten
The Go compiler is written in Go, and is open source. You can do almost anything you want with it (it has a BSD style license), as long as you take the job fully yourself. If you want to interpose a Lisp, I've written a lexically scoped Lisp for Go (https://github.com/glycerine/zygomys) and