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

bpo-43199: Briefly explain why no goto #24852

Merged
merged 4 commits into from
Mar 14, 2021
Merged

Conversation

terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Mar 13, 2021

Answer "Why is there no goto?" in the Design and History FAQ.

https://bugs.python.org/issue43199

Answer "Why is there no goto?" in the Design and History FAQ.
Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to do this. I feel that this answers the Why is there no goto? question more directly.

Comment on lines 607 to 608
and 'or' and 'and' expressions) and loop (while and for statements
with continue and break statements).
Copy link
Member

@Fidget-Spinner Fidget-Spinner Mar 14, 2021

Choose a reason for hiding this comment

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

Since we're already marking out or and and, might as well do so for the rest to make the sentence clearer.

Suggested change
and 'or' and 'and' expressions) and loop (while and for statements
with continue and break statements).
and ``or`` and ``and`` expressions) and loop (``while`` and ``for`` statements
with ``continue`` and ``break`` statements).

@terryjreedy terryjreedy merged commit 5e29021 into python:master Mar 14, 2021
@miss-islington
Copy link
Contributor

Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

@terryjreedy terryjreedy deleted the nogo branch March 14, 2021 22:12
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 14, 2021
Answer "Why is there no goto?" in the Design and History FAQ.
(cherry picked from commit 5e29021)

Co-authored-by: Terry Jan Reedy <[email protected]>
@bedevere-bot
Copy link

GH-24862 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Mar 14, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 14, 2021
Answer "Why is there no goto?" in the Design and History FAQ.
(cherry picked from commit 5e29021)

Co-authored-by: Terry Jan Reedy <[email protected]>
@bedevere-bot
Copy link

GH-24863 is a backport of this pull request to the 3.8 branch.

@terryjreedy
Copy link
Member Author

@Fidget-Spinner Thanks for the helpful review.

sthagen added a commit to sthagen/python-cpython that referenced this pull request Mar 14, 2021
bpo-43199: Briefly explain why no goto (pythonGH-24852)
miss-islington added a commit that referenced this pull request Mar 15, 2021
Answer "Why is there no goto?" in the Design and History FAQ.
(cherry picked from commit 5e29021)

Co-authored-by: Terry Jan Reedy <[email protected]>
miss-islington added a commit that referenced this pull request Mar 15, 2021
Answer "Why is there no goto?" in the Design and History FAQ.
(cherry picked from commit 5e29021)

Co-authored-by: Terry Jan Reedy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants