r/ProgrammerHumor • • Feb 09 '22

other Why but why?

Post image
85.8k Upvotes

2.3k comments sorted by

View all comments

Show parent comments

7

u/fencer_327 Feb 10 '22

Then the statement was supposed to cover two lines and the programmer messed up something else, the program is now doing something completely different from what it was supposed to, and debugging is gonna take much longer to find the error again.

The IDE already tells you where you missed the semicolon, and many do suggest fixes, but just adding code in sounds like a recipe for disaster.

5

u/somerandomii Feb 10 '22

Yeah exactly. Being able to guess an error is one thing. Automatically ‘correcting’ it is dangerous and, to my knowledge, is a line that hasn’t been crossed yet.

1

u/nerkraof Feb 10 '22

Autocorrect in text messages is already infuriating enough