couchbase/service-broker

Internal Templating Type System

Closed this issue · 1 comments

The template stuff looks for the Stringer interface before rendering any output, we should consider wrapping internal types so as to generate JSON output rather than implicitly applying the function. This most likely has the net result of allowing control flow.

This may not be such a good idea, it appears things are stringified all over the place e.g. a function parameter printf "dave-%s" (registry "name") yields dave-"value". And also the internal return types from printf we cannot touch in order to turn them into our abstract type.