You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
Current thinking is to support custom "single-property builder" templates, with the API cloned onto the enclosing builder. For instance, a Set template might look like:
Here, "Property" is a magic string that gets replaced by the actual property name when the API is cloned, so for instance a set property called Values would result in methods addValues, addAllValues, clearValues and getValues. It should also be possible to inline the template definition as part of code generation, making custom extensions indistinguishable from built-in extensions. We could even use templates for all existing customization.
A key motivating example is values like IDs and timestamps that are generally minted at build time, but should not be overridden during deserialization.
The text was updated successfully, but these errors were encountered:
Current thinking is to support custom "single-property builder" templates, with the API cloned onto the enclosing builder. For instance, a Set template might look like:
Here, "Property" is a magic string that gets replaced by the actual property name when the API is cloned, so for instance a set property called Values would result in methods addValues, addAllValues, clearValues and getValues. It should also be possible to inline the template definition as part of code generation, making custom extensions indistinguishable from built-in extensions. We could even use templates for all existing customization.
A key motivating example is values like IDs and timestamps that are generally
minted
at build time, but should not be overridden during deserialization.The text was updated successfully, but these errors were encountered: