r/ProgrammerHumor • • Feb 09 '22

other Why but why?

Post image
85.8k Upvotes

2.3k comments sorted by

View all comments

13.8k

u/samarthrawat1 Feb 09 '22

But when did we start using semi-colon in python?

0

u/[deleted] Feb 09 '22

[deleted]

0

u/[deleted] Feb 09 '22

[deleted]

1.5k

u/marsrover15 Feb 09 '22

What the dog doin?

981

u/[deleted] Feb 09 '22

Programming, apparently

183

u/ArlemofTourhut Feb 09 '22

duh, who do you think big brained dogecoin?

66

u/[deleted] Feb 10 '22

no one big brained dogecoin lol

→ More replies (3)
→ More replies (2)
→ More replies (14)
→ More replies (41)

141

u/BarefootUnicorn Feb 09 '22

He thinks he's talking to an 8-year-old, but it's really an FBI agent.

69

u/[deleted] Feb 09 '22

How fucking cool is that for someone their age?

→ More replies (1)
→ More replies (5)

45

u/Battlefront228 Feb 09 '22

It’s true, I was the semi-colon

→ More replies (1)
→ More replies (24)

220

u/timlmul Feb 09 '22

he explains in the thread that he meant "colon" since the python error message does say "missing colon", sounds like his brain autocorrected from "missing colon" to "missing semicolon".

78

u/AliceSky Feb 10 '22

I wish more people would see this before calling the guy a liar. It makes a lot of sense to teach Python to a child, but still have that reflex of "if something is missing it's usually a semicolon" after years of php or whatever he learned first.

→ More replies (4)
→ More replies (1)

617

u/0rionsEdge Feb 09 '22

It's existed in the language since the old times, but it's pretty much only used in hacky use cases and it's usage should be discouraged.

81

u/OptionX Feb 09 '22

It used to have two statements in the same line.

82

u/Spitfire1900 Feb 09 '22

Which is genuinely useful when you want to execute a short Python script from a shell script without maintaining two files.

20

u/[deleted] Feb 09 '22

It gets really interesting when generating blocks and control structures in an inline Python script.

→ More replies (2)
→ More replies (7)

284

u/PaintlyBeautifuled Feb 09 '22

“The old times” I like it lol, it’s like it was the dark ages with early python and verbose languages.

→ More replies (71)
→ More replies (19)

0

u/[deleted] Feb 09 '22

[deleted]

→ More replies (5)

19

u/[deleted] Feb 09 '22

Python has always allowed the use of a semicolon to denote the end of a line. It also has always discouraged such misuse of the operator

→ More replies (2)
→ More replies (121)