Open dnwe opened 2 years ago
👋🏻 Firstly, thank you so much for naml — it is wonderful!
It would be great if the codify-generated code could avoid the runtime dependency on valast by using the k8s.io/utils/pointer package for getting pointers to a primitive:
k8s.io/utils/pointer
e.g.,
-valast.Addr(false).(*bool) +pointer.Bool(false) -valast.Addr(int64(65534)).(*int64) +pointer.Int64(65534)
etc.
This also produces more readable code.
Obviously there's no built-in support in valast for customising the generated ast so it would have to be a post-processing task done in codify itself
interested in opening a PR for this?
this change seems reasonable to me
👋🏻 Firstly, thank you so much for naml — it is wonderful!
It would be great if the codify-generated code could avoid the runtime dependency on valast by using the
k8s.io/utils/pointer
package for getting pointers to a primitive:e.g.,
etc.
This also produces more readable code.
Obviously there's no built-in support in valast for customising the generated ast so it would have to be a post-processing task done in codify itself