▲ 1535 ▼ Unions are like condoms (lemmus.org) submitted 3 years ago by jimmydoreisalefty@lemmus.org to c/memes@lemmy.ml 37 comments fedilink hide all child comments
[–] Rednax@lemmy.world 58 points 3 years ago (5 children) This is terrible programming advice. permalink fedilink source hideshow 5 child comments replies: [–] pivot_root@lemmy.world 37 points 3 years 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) permalink fedilink source parent [–] WaltJRimmer@lemmy.world 19 points 3 years ago (2 children) I never knew my Set Theory professor was so against workers' rights! permalink fedilink source parent hideshow 2 child comments replies: [–] Rednax@lemmy.world 23 points 3 years ago (1 child) My C++ teacher taught me to be against unions. He made everything class based instead. permalink fedilink source parent hideshow 1 child comment replies: [–] pivot_root@lemmy.world 11 points 3 years 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. permalink fedilink source parent [–] Undaunted@feddit.de 9 points 3 years ago I laughed at that, thank you! permalink fedilink source parent
[–] pivot_root@lemmy.world 37 points 3 years 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) permalink fedilink source parent
[–] WaltJRimmer@lemmy.world 19 points 3 years ago (2 children) I never knew my Set Theory professor was so against workers' rights! permalink fedilink source parent hideshow 2 child comments replies: [–] Rednax@lemmy.world 23 points 3 years ago (1 child) My C++ teacher taught me to be against unions. He made everything class based instead. permalink fedilink source parent hideshow 1 child comment replies: [–] pivot_root@lemmy.world 11 points 3 years 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. permalink fedilink source parent
[–] Rednax@lemmy.world 23 points 3 years ago (1 child) My C++ teacher taught me to be against unions. He made everything class based instead. permalink fedilink source parent hideshow 1 child comment replies: [–] pivot_root@lemmy.world 11 points 3 years 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. permalink fedilink source parent
[–] pivot_root@lemmy.world 11 points 3 years 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. permalink fedilink source parent
[–] Undaunted@feddit.de 9 points 3 years ago I laughed at that, thank you! permalink fedilink source parent