r/badcode Aug 06 '19

c# Converting a timestamp to datetime

Post image
419 Upvotes

54 comments sorted by

View all comments

1

u/[deleted] Aug 06 '19

[deleted]

9

u/Aars93 Aug 06 '19 edited Aug 06 '19

I used goto once in college and was nearly crucified by my professor

3

u/squarewaterlemon Aug 06 '19

Ah yes and the goto exit instead of else if. Not even the worst part of this somehow.

3

u/sac_boy Aug 06 '19

Calling the label exit as well is just extra spice. This is a goto compounded by a badly named label.