34

Credit to u/srgrafo

Comments
  • 8
    New, credited AND the correct category
    Respect
  • 1
    Son, you’re making me real proud.
  • 2
    Semantic errors are also caught by the compiler though
  • 2
    @12bitfloat I setup my first pc up again as server and run a mc server there.

    Just recently I saw a plugin which had downvotes because of “corrupting config files”, looking further into his github, turns out, it was some auto fixer that tried to simplify an if statement.

    The resulting code was something like

    fuck u highlighter
  • 1
  • 0
    @010001111 I had a good laugh hahaha, you should have kept your original comment.
  • 0
    Can compiled languages get runtime errors? I don't recall encountering one for some reason, at least in C.
  • 0
    With proper typing compiler can catch most things that would otherwise lead to runtime errors. Being a dumbfuck on the other hand, no amount of checks can fix that...
  • 0
    @specialCardinal Why not? Simplest one that comes to mind is division by zero.
  • 0
    @specialCardinal Sure they can but it depends on the language. C doesn't have a concept of exceptions so CPU faults like division by zero or illegal memory access simply terminate the process. Rust can (only if enabled though IIRC) panic on division by zero which can be caught
  • 0
    @jaine @12bitfloat Oh right. No wonder I couldn't remember any in C, because it simply terminates the process with a subtle error message for the most part.
  • 1
Add Comment