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

Update if-let.md #38436

Merged
merged 3 commits into from Feb 6, 2017
Merged

Update if-let.md #38436

merged 3 commits into from Feb 6, 2017

Commits on Dec 17, 2016

  1. Update if-let.md

    Calling if-let a combination of if and let is confusing, as some may be led to believe that it's a literal combination, instead of syntactic sugar added to the language as a convenience.  What's there to stop someone from thinking if-let is just if and let together?  
    
    I do think this article does a good job of implying what's really going on; however, I was only able to notice this after I had begun to understand if/while-let statements, courtesy of the Rust IRC chat.  
    
    Basically, this article lacks the clarity and explicitness an inexperienced programmer like me needs in order to understand the contents fully.  This is shown by my inability to understand the if-let concept from this page of the Book alone.  
    
    I think convenience, sugar, and (if-let != if + let) should all be made mention of in a clear, explicit manner. I lack confidence in my understanding of this issue, so I wrote just enough to hopefully get my thoughts across.
    bluecereal committed Dec 17, 2016
    Copy the full SHA
    4495f7e View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2017

  1. Update if-let.md

    bluecereal committed Jan 21, 2017
    Copy the full SHA
    ebf07da View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2017

  1. Update if-let.md

    bluecereal committed Feb 6, 2017
    Copy the full SHA
    fb7f211 View commit details
    Browse the repository at this point in the history