The above code was just an example. In general I would like to be able to paste
code using templates or macros in a similar way that you can with D's string
mixins which allow you to generate strings using functions and then paste them
anywhere and generate code in compile time. In the above code I would like to
end up with something like this
type
MyType = object
fname: string
age: int
extraCode
`extraCode` could be any number of lines of code that extend the type generated
at compile time. But in general I would like to be able to paste code anywhere.