What's the best way to get a pragma value for each object field? We have 
getCustomPragmaVal which accepts untyped. We also have fieldPairs which returns 
field names as strings. But there's no way to call getCustomPragmaVal knowing 
only the field name.

The best solution I came up with is macro dot that takes an object and a string 
and spits a dotExpr. Then I pass that to getCustomPragmaVal.

While that works, it has its limitations. Like, somehow I can't use it on procs 
in some cases, have to use templates. I'm also having issues with importing 
that macro.

Is there a better pattern maybe?

Reply via email to