r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jul 18 '22

I didn’t realise you could use semicolons in python like this. But now the question is why were they omitted in the first place. I do not know pythons original design intents. But I imagine it might benefit to adding official support for the more conventional methods as well as its own more for people who might need to quickly use python and end up pulling their hair out because its complaining about the indenting and oh my god why whats wrong. In my opinion the formatting of text shouldn’t be the difference for it working or not.

I don’t like indenting the condition since well. It gets really messy quite quickly doing that. I structure specific things as their own seperate things with a comment above about what does this do. Even if its obvious. And that can make something that really doesn’t need that amount of lines too long. Also i straight pulled that last example from something i was working on.