-
Notifications
You must be signed in to change notification settings - Fork 204
Add discussion of 'if' and 'switch' expressions [SE-0380] #111
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
Merged
amartini51
merged 21 commits into
swiftlang:main
from
amartini51:if_expression_104936324
May 26, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ec0fdfd
Start roughing in 'if' and 'switch' expressions.
amartini51 26200f9
Answer a question by reading the compiler's tests.
amartini51 a5e63b7
Rough in reference for conditional expression.
amartini51 3642280
Sketch possible examples for the guide.
amartini51 468c9aa
Show the expression form next to statement forms.
amartini51 1f41c46
Show an if expression in the tour.
amartini51 e9edbd7
Iterate on reference and grammar.
amartini51 32e05c5
Show failure cases in if/switch expressions.
amartini51 eed7461
Avoid making the whole section one big list.
amartini51 c1d595e
Update the summary of the grammar.
amartini51 faec17e
Incorporate tech review from Hamish.
amartini51 1d65161
Remove stray backticks.
amartini51 4c5bc88
Add an example that needs a type annotation.
amartini51 4cb2d9e
Remove stray double-newlines.
amartini51 5bf03bb
Fill in grammar rules from primary-expression.
amartini51 e1eaae5
Take an editorial pass over new content.
amartini51 d0b48f5
Apple Style Guide: equals sign -> equal sign.
amartini51 31abb13
Style fix: t-shirt -> T-shirt
amartini51 0d492dc
Mention which alphabet.
amartini51 6993064
Apply editorial fixes.
amartini51 9b37cf1
Clarify "below".
amartini51 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.