Skip to content

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

Description

@johomo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions