@Sgt_choke_n_stroke@lemmy.world to Programmer Humor@programming.dev • 9 months agoThe temptation is always therelemmy.worldimagemessage-square101fedilinkarrow-up11.11K
arrow-up11.11KimageThe temptation is always therelemmy.world@Sgt_choke_n_stroke@lemmy.world to Programmer Humor@programming.dev • 9 months agomessage-square101fedilink
minus-square@QuazarOmega@lemy.lollinkfedilink10•9 months agoAs opposed to immutable variables *confused screaming*
minus-square@Eufalconimorph@discuss.tchncs.delinkfedilink3•edit-29 months 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…