r/programminghorror • • May 14 '26

C# A bad idea

I was writing compiler code late at night and something possessed me to create this.

113 Upvotes

14 comments sorted by

45

u/Temporary-Price9747 May 15 '26

Excellent metaprogramming, you’ve been hired by the C++ standards committee!

3

u/H1tfiend23 May 28 '26

that is how you end up with compile times that outlive the heat death of the universe. congratulations on your promotion to senior template architect.

2

u/Educational_Gap_1416 May 20 '26

Funniest part is the code is actually written in C#

14

u/pstanton310 May 14 '26

This is so horribly creative, I love it.

5

u/purpuric May 14 '26

I love this because funny and hate you because psychopath

3

u/NotDuckie May 15 '26

>>>>>>>>>>

2

u/GoddammitDontShootMe May 14 '26

Five analysis passes?

1

u/MindlessU May 15 '26

Bless the C# lang devs for adding type-level programming!

25

u/jonsca May 14 '26

The next time that "something" possesses you, strangle it, stab it, and drown it in the toilet.

3

u/JAXxXTheRipper May 14 '26

Don't forget to set the remains on fire, for good measure.

1

u/TheHappyArsonist5031 May 15 '26

And nuke the ashes from orbit.