▲ 356 ▼ More believable for a Linux OS (lemmy.world) submitted 2 years ago by nifty@lemmy.world to c/programmer_humor@programming.dev 41 comments fedilink hide all child comments
[–] bjorney@lemmy.ca 10 points 2 years ago (1 child) OSError: File or directory not found "C:WindowsSystem32" permalink fedilink source hideshow 2 child comments replies: [–] mox@lemmy.sdf.org 7 points 2 years ago* (last edited 2 years ago) (1 child) Nope. From the spec: "Unlike Standard C, all unrecognized escape sequences are left in the string unchanged, i.e., the backslash is left in the result." permalink fedilink source parent hideshow 2 child comments replies: [–] Ephera@lemmy.ml 6 points 2 years ago (1 child) This behavior is useful when debugging: if an escape sequence is mistyped, the resulting output is more easily recognized as broken. Wow, this sentence really threw me for a moment. I had no idea how other programming languages behave. ...which makes sense, because they don't. The compiler just tells you to fuck off and that's the end of that story. I guess, they can't do that in Python... permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 1 point 2 years ago (1 child) Python 3.12's compiler tells you to fuck off permalink fedilink source parent hideshow 2 child comments replies: [–] Ephera@lemmy.ml 1 point 2 years ago Ah, neat. permalink fedilink source parent
[–] mox@lemmy.sdf.org 7 points 2 years ago* (last edited 2 years ago) (1 child) Nope. From the spec: "Unlike Standard C, all unrecognized escape sequences are left in the string unchanged, i.e., the backslash is left in the result." permalink fedilink source parent hideshow 2 child comments replies: [–] Ephera@lemmy.ml 6 points 2 years ago (1 child) This behavior is useful when debugging: if an escape sequence is mistyped, the resulting output is more easily recognized as broken. Wow, this sentence really threw me for a moment. I had no idea how other programming languages behave. ...which makes sense, because they don't. The compiler just tells you to fuck off and that's the end of that story. I guess, they can't do that in Python... permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 1 point 2 years ago (1 child) Python 3.12's compiler tells you to fuck off permalink fedilink source parent hideshow 2 child comments replies: [–] Ephera@lemmy.ml 1 point 2 years ago Ah, neat. permalink fedilink source parent
[–] Ephera@lemmy.ml 6 points 2 years ago (1 child) This behavior is useful when debugging: if an escape sequence is mistyped, the resulting output is more easily recognized as broken. Wow, this sentence really threw me for a moment. I had no idea how other programming languages behave. ...which makes sense, because they don't. The compiler just tells you to fuck off and that's the end of that story. I guess, they can't do that in Python... permalink fedilink source parent hideshow 2 child comments replies: [–] bjorney@lemmy.ca 1 point 2 years ago (1 child) Python 3.12's compiler tells you to fuck off permalink fedilink source parent hideshow 2 child comments replies: [–] Ephera@lemmy.ml 1 point 2 years ago Ah, neat. permalink fedilink source parent
[–] bjorney@lemmy.ca 1 point 2 years ago (1 child) Python 3.12's compiler tells you to fuck off permalink fedilink source parent hideshow 2 child comments replies: [–] Ephera@lemmy.ml 1 point 2 years ago Ah, neat. permalink fedilink source parent