Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine withTemplate and apply #342

Open
pauxus opened this issue Nov 19, 2024 · 0 comments
Open

Combine withTemplate and apply #342

pauxus opened this issue Nov 19, 2024 · 0 comments

Comments

@pauxus
Copy link
Member

pauxus commented Nov 19, 2024

i.e.

def heatedRoom = ...
def unheatedRoom = ...


       bedroom(heatedRoom) {
       }
       storage(unheatedRoom) {
       }

so bedroom(heatedRoom) {} is basically a nice shortcut for bedroom(copyFrom: heatedRoom) {}.

  • should this be only present in collection factories and factory?
    • this would reduce clutter, but severely hamper the usefulness in Layer3
  • Since this does not include a specific type, type could be derived from the actual type (does this make sense?):
    • if template is a synthetic template class, its original class must be used
    • if template is a super class of the expected class, the expected class should be used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant