1084
you are viewing a single comment's thread
view the rest of the comments
[-] QuazarOmega@lemy.lol 10 points 2 years ago

As opposed to immutable variables

*confused screaming*

[-] yiliu@informis.land 5 points 2 years ago
[-] Eufalconimorph@discuss.tchncs.de 3 points 2 years ago* (last edited 2 years ago)
int const golden = 1.618;
int* non_constant = (int*)&golden;
golden = 1.61803399;

Casts are totally not a danger that should require a comment explaining safety…

this post was submitted on 08 Oct 2023
1084 points (96.6% liked)

Programmer Humor

22969 readers
1393 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS