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

defined a dynamic paramater for colors map in the color function #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HamzaJirah
Copy link

When more than one map is created, say $colors and $more-colors, it would make sense to define a dynamic map parameter in the function rather than hardcode it. This way, we can simply pass in the map name and its key as arguments to the function.

Copy link

@0xkarambit 0xkarambit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't think that this change is necessary because the very reason we wrote this function in the first place was to avoid having to write both map_name and property_name each time we need to get a value. I think this change defeats the very purpose for which this function was written in the first place and that's why this PR should be closed.

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