Sgt_choke_n_stroke@lemmy.world to Programmer Humor@programming.dev · 1 year agoThe temptation is always therelemmy.worldimagemessage-square98fedilinkarrow-up11.07Karrow-down139
arrow-up11.03Karrow-down1imageThe temptation is always therelemmy.worldSgt_choke_n_stroke@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square98fedilink
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up9·1 year agoAs opposed to immutable variables *confused screaming*
minus-squareEufalconimorph@discuss.tchncs.delinkfedilinkarrow-up3·edit-21 year agoint 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…
As opposed to immutable variables
*confused screaming*
Or mutable constants…
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…