r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

Show parent comments

20

u/[deleted] Jul 20 '18

Wouldn't the stacktrace lead you exactly to this? Meaning it would be confusing/amusing once?

24

u/DoctorWaluigiTime Jul 20 '18

Technically, currently as-written, it wouldn't compile!

15

u/normalmighty Jul 20 '18

You must have missed the hip new wave of languages that close strings with a colon so you can tell the open and close strings apart.

4

u/[deleted] Jul 20 '18

Would be better to null out an important object from some class that is only barely related.

2

u/0x564A00 Jul 20 '18

In Java you can use setStackTrace(StackTrace st).

0

u/Philipp Jul 20 '18
#if executable
    if (DateTime.Now.Milliseconds % 10 == 0) {
        throw new Exception("lol screw you");
    }
#endif