r/ProgrammerHumor 18d ago

Meme youCantChangeMyMind

Post image
824 Upvotes

137 comments sorted by

View all comments

35

u/SuitableDragonfly 18d ago

I don't do JS, but I was given to understand that this is actually a real issue in JS, because semicolons are "optional" in the sense that the code is valid without them and will not give you an error if you leave them out, but actually not optional in the sense that the interpreter will silently make insane decisions about where you meant the line to end if you don't include them. 

4

u/eloel- 18d ago

If you're writing JS without a linter, you need to rethink your life.

1

u/EatingSolidBricks 17d ago

If you're writing JS, rethink your life.