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

Programmer Humor

18970 readers
487 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 10 months ago (1 children)

As opposed to immutable variables

*confused screaming*

[–] [email protected] 5 points 10 months ago (1 children)
[–] [email protected] 3 points 10 months ago* (last edited 10 months 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…