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

Allows assign_new/2 to take a map of values #293

Merged

Conversation

adkron
Copy link
Contributor

@adkron adkron commented Sep 16, 2022

Description

Building on the previous work allows assign_new/2 to work with either a keyword list or map.

The change is applied to Driver and Scene so both have a consistent API.

Motivation and Context

Consistency in the API is essential in line with the recent work of assign/2 taking a list or map.

Thanks to @amclain and @thejohncotton for the inspiration.

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any feature
    but make things better)

Checklist

  • Check other PRs and make sure that the changes are not done yet.
  • The PR title is no longer than 64 characters.

Consistency in the API is essential in line with the recent work of
`assign/2` taking a list or map. Building on the previous work allows
`assign_new/2` to work with either a keyword list or map.

The change is applied to `Driver` and `Scene` so both have a consistent
API.

Thanks to @amclain and @thejohncotton for the inspiration.
@boydm boydm merged commit 6838ff7 into ScenicFramework:master Sep 18, 2022
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

Successfully merging this pull request may close these issues.

2 participants