this post was submitted on 23 Aug 2023
1524 points (98.5% liked)

Memes

45891 readers
1567 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Rednax@lemmy.world 56 points 1 year ago (3 children)

This is terrible programming advice.

[–] pivot_root@lemmy.world 37 points 1 year ago

Blasphemy! Unions are just algebraic data types without any guardrails. If the programmer misuses them, that's their own fault for b$:, 9^\⊂ƒ~>[→ZzF™×#
Segmentation fault (core dumped)

[–] WaltJRimmer@lemmy.world 19 points 1 year ago (1 children)

I never knew my Set Theory professor was so against workers' rights!

[–] Rednax@lemmy.world 23 points 1 year ago (1 children)

My C++ teacher taught me to be against unions. He made everything class based instead.

[–] pivot_root@lemmy.world 11 points 1 year ago* (last edited 1 year ago)

How reckless, encouraging inheritance like that. My ~~personal demon~~ college tutor instructed me on the ways of Malbolge. In the end, life is just a list of self-modifying instructions.

[–] Undaunted@feddit.de 9 points 1 year ago

I laughed at that, thank you!