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

[Proposal] Extend Section 6 with an encouraging reflection #15

Open
johomo opened this issue Feb 4, 2024 · 0 comments
Open

[Proposal] Extend Section 6 with an encouraging reflection #15

johomo opened this issue Feb 4, 2024 · 0 comments

Comments

@johomo
Copy link

johomo commented Feb 4, 2024

The footnote of Section 6: It's not a choice, it defines who we are states:

This is to instantly close down any conversation about introducing curly braces to Python.

Even though it is correct, such a harsh statement may disappoint even the most stone-hearted programmer. But Python never disappoints you. It is so versatile that it allows using curly braces, and even any block delimiter of your choise, provided that you prepend # .

# This is allowed
resume = "knows Python"
if 'Python' in resume: # {
    print('You rock!')
# }    

# This is also allowed
resume = "knows Python"
if 'Python' in resume:
# BEGIN
    print('You rock!')
# END

Do you think this encouraging reflection is worth being added, even though it is not an easter egg?

Bonus track: With Whython your dreams come true. You can type code blocks with braces.

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

No branches or pull requests

1 participant