Should directives (e.g. for serialization and compilation) be at the same syntactic scope or live in modules or both?
E.g. go-lang json, yaml directives
E.g. Gson annotations
E.g. java inject / guice annotations
E.g. JPA
Vs defining mappings centrally / out of band (e.g. global config of style choices or default overrides)
Does it need to be either / or? When to choose one over the other.
Should directives (e.g. for serialization and compilation) be at the same syntactic scope or live in modules or both?
E.g. go-lang json, yaml directives
E.g. Gson annotations
E.g. java inject / guice annotations
E.g. JPA
Vs defining mappings centrally / out of band (e.g. global config of style choices or default overrides)
Does it need to be either / or? When to choose one over the other.