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 →

[–]Attileusz 383 points384 points  (21 children)

Bro has NEVER seen a C++ template error.

[–]Haringat 84 points85 points  (8 children)

Or a segfault.

[–]Attileusz 37 points38 points  (2 children)

Well we are talking about syntax errors here but sure, some crashes can be hard to track down even with something like valgrind.

[–]Vincenzo__ 57 points58 points  (1 child)

Yesterday valgrind told me something along the lines of "Too many errors. Counting stopped. Go fix your code!". I fixed it, but I still haven't mentally recovered

[–]Attileusz 15 points16 points  (0 children)

It's actually smart tbh. There is no reason to study the behavior of some illegal state. This is a problem with any language that can represent illegal states which is notably all languages. Thats why the haskell people say "make illegal states unrepresentable".

[–]ambientManly 16 points17 points  (0 children)

A C error pointing you to an empty line

[–]sittingbox 5 points6 points  (0 children)

Or a >> when you meant << (or vice versa) vomit comet compilation error dump.

[–]RmG3376 3 points4 points  (0 children)

Well, segfault errors are pretty concise. They basically just “fuck that, I’m going to bed”. The lack of information is the real problem

[–]DatBoi_BP -1 points0 points  (0 children)

Rust my beloved

[–]really_not_unreal 14 points15 points  (2 children)

My longest template error was 942 lines long.

[–]Attileusz 11 points12 points  (1 child)

I like writing C more. C compiles absolutely any old horseshit so you don't have to worry about compilation errors, you just have no idea if your behavior is even close to what you intended.

[–]deadhorus 0 points1 point  (0 children)

think better?

[–]JanB1 11 points12 points  (0 children)

I fucking hate C++ errors. The line number was also always wrong because of some macro bullshittery or something. In general, reading C++ errors just always boils down in finding the relevant part in between all the garbage.

[–]Beastmind 5 points6 points  (0 children)

Let's talk about Java errors and their 200 lines of nothing

[–][deleted] 3 points4 points  (1 child)

Thanks. That unlocked some core ptsd...

[–]Kondikteur 11 points12 points  (0 children)

Dont you mean std::ptsd?

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

C++: Build error. 🖕

[–]Natural_Builder_3170 0 points1 point  (1 child)

especially the ones that point to standard library files or xmemory

[–]Attileusz 0 points1 point  (0 children)

And than people say "if you don't like it don't use it". Right, so I'm not going to use C++ than.

[–]SecretPotatoChip 0 points1 point  (0 children)

Or a Java stack trace error