3 ms·
My beef here is with the word 'random'. Mistakes don't make for random crashes - hard to trace perhaps, but not random.
by futurix 9y ago
My beef here is with the word 'random'. Mistakes don't make for random crashes - hard to trace perhaps, but not random.
- stinos 9y ago> not random Not so sure about that. Here's a mistake: have a floating point variable somewhere and then don't initialize it. On it's first use, multiply it by 0.0. What do you think the chances are the result is 0.0? Hint: nan * 0.0 == nan, and there are many nan representations out there, so it solely depends on what pattern the memory location for that variable is initialized with. So unless your compiler created a bunch of code to initialize the memory for you, which it does not always do, I'd consider that pretty random.
- futurix 9y agoWell, yes, but it is randomness of a mistake - not randomness of the language. If you are going to shoot yourself in the foot, I guess the wound would be pretty randomly located - but that is not the fault of the gun manufacturer.