this post was submitted on 23 Aug 2023
1484 points (98.4% liked)

Memes

45745 readers
2279 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 62 points 1 year ago (3 children)

This is terrible programming advice.

[–] pivot_root 39 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 20 points 1 year ago (1 children)

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

[–] Rednax 23 points 1 year ago (1 children)

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

[–] pivot_root 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.

[–] [email protected] 9 points 1 year ago

I laughed at that, thank you!