Live data from Hacker News

Goreuse: Generic Code for Go

github.com

1–4 of 4 posts

Re: Goreuse: Generic Code for Go

#2
goreuse takes Go, modifies the AST by replacing those parts that are needed to be customized and generates a Go source that is specialized for concrete types. It is "go generate" compatible.

Re: Goreuse: Generic Code for Go

#4
post #2

goreuse takes Go, modifies the AST by replacing those parts that are needed to be customized and generates a Go source that is specialized for concrete types. It is "go generate" compatible.

So it basically just monomorphises?

Mostly. But since it is possible to replace/redefine the functions and methods too, it's a bit more capable than that and one can "override" methods or redefine functions.