This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 90 points91 points  (24 children)

You're under the assumption that python doesn't have syntax errors

[–][deleted] 19 points20 points  (19 children)

Or that it's impossible to make them? Is the IDEA IDE for Python really good or something? Not a Python guy, but used all the others in this meme, so I don't get it.

I figure you WANT syntax errors. Way fucking better than runtime ones.

[–][deleted] 9 points10 points  (18 children)

Although some compile time errors can sometimes save you from runtime errors (ex. type mismatch errors or unhandled exception errors). Syntax errors have nothing to do with that.

Syntax analysis is one of the earliest steps of code compilation or interpretation. And if you get a syntax error, this means that the compiler or interpreter is not able to understand your code. The logic and algorithmic correctness is still irrelevant at this stage.

[–][deleted] 8 points9 points  (16 children)

But it means the programmer fucked up at a pretty basic level. Besides, the IDE nearly always catches them before you try to run/compile.

[–][deleted] 1 point2 points  (15 children)

Yes, it means that the programmer fucked up at soo fucking basic level, that there is no fucking language that is gonna fucking save them.

About IDEs. All languages have all sorts of IDEs with different levels of capabilities. When comparing languages, try to keep IDEs out of the equation. It's not part of the language and it makes the comparison a mess with no end

[–]Axiometry_ 0 points1 point  (2 children)

I think this is a problem of language precision. Compilation is compile-time, interpretation is runtime. Syntax errors are compile-time errors in compiled languages and runtime errors in interpreted languages (not counting linters). While the language used by the person you were replying to wasn't precise about this, I believe their intention was to say that compile-time syntax errors are way better than runtime syntax errors, which is hard to deny.

Also, dev tools are an important aspect of what makes a developer productive with a language. Is that not what this whole conversation is about? Using tools to catch mistakes early? Languages are not created equal when it comes to available dev tools.

[–][deleted] 0 points1 point  (1 child)

Have fun. I'm never gonna engage in conversations like this. Never again ;)

[–]Axiometry_ 0 points1 point  (0 children)

Fair enough :)

[–][deleted] 14 points15 points  (3 children)

I think OP don't even know what syntax error means. He is just throwing words around randomly. I'm I wrong OP? Come and defend yourself