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

Clearer variable names in identity fn #91

Merged
merged 1 commit into from
Mar 30, 2015

Conversation

sdwebster
Copy link
Contributor

It's visually confusing for Applicative named 'a' to call an identity function that also has a variable named 'a'.

It's visually confusing for Applicative named 'a' to call an identity function that also has a variable named 'a'.
@davidchambers
Copy link
Member

#90 didn't go anywhere, so you may meet resistance here. Good luck to you, @sdwebster!

@sdwebster
Copy link
Contributor Author

Hi David! Sorry I hadn't seen #90 when I made #91. I have no strong opinion on the overall naming scheme. #91 is simply a replacement in a single statement where there's variable confusion.

@davidchambers
Copy link
Member

I agree that the choice of names is confusing, but @puffnfresh may argue that names don't matter. ;)

puffnfresh added a commit that referenced this pull request Mar 30, 2015
Clearer variable names in identity fn
@puffnfresh puffnfresh merged commit 0bccea7 into fantasyland:master Mar 30, 2015
@puffnfresh
Copy link
Member

The name doesn't matter but shadowing has benefits and drawbacks.

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.

3 participants