r/shittyprogramming • • Oct 28 '21

CPython++

Post image
293 Upvotes

28 comments sorted by

View all comments

Show parent comment

1

u/zyugyzarc Jan 01 '22

it can be useful for things like

if not condition:
    print("something"); return

1

u/Balint817 Jan 01 '22

How is that useful?

3

u/zyugyzarc Jan 01 '22

you dont need to use up an entire line for just an empty return statement

but then again python syntax encourages readability and all that so i guess putting it in the next line isnt that big of a deal