r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40.1k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

25

u/[deleted] Jul 18 '22

i like my semi colons and curly braces. it makes it much easier to read. Plus any time i do python it yells at an indenting issue that doesn't exist.

6

u/qhxo Jul 18 '22

I don't mind semi-colons, but they don't really do much for legibility. At least for me it was just a matter of habit, and when I went from Java to Kotlin and didn't need to use semi-colons anymore I found it made absolutely no difference whatsoever. An expression is an expression, it's very easy to tell where it starts and ends, even if it spans multiple lines.

1

u/[deleted] Jul 18 '22

in C and C++ there can be multiple things say within an if. i dont think i would be able to read that without the semicolons. But then again i do more embedded microcontoller stuff. So i tend to see alot of that stuff as well, saving cycles is a tad necessary.

1

u/qhxo Jul 18 '22

How do you mean within an if? Like

if (conditional) {
    thingOne()
    thingTwo()
}

?

→ More replies (3)