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
If no annotation (or name for @Placeholder) is present, default to the method/parameter name. If parameters were not compiled, we should throw an error rather than using param1 as that is almost never intentional.
With these changes you should be able to write:
Stringfoo();
@Property// - maybe like this? probably not because it doesn't really aid readability too muchStringbar();
Stringbaz(@PlaceholderStringfoo, @Placeholder.ParsedStringbar);
Considerations
Should names be mapped in any way? For example into kebab-case? - or should this be something that configuration sources handle (for example through a MappingConfigurationSource?
The text was updated successfully, but these errors were encountered:
Motivation
Writing
and (soon)
are both extremely verbose.
Proposal
If no annotation (or name for
@Placeholder
) is present, default to the method/parameter name. If parameters were not compiled, we should throw an error rather than using param1 as that is almost never intentional.With these changes you should be able to write:
Considerations
Should names be mapped in any way? For example into kebab-case? - or should this be something that configuration sources handle (for example through a
MappingConfigurationSource
?The text was updated successfully, but these errors were encountered: