Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Evaluation Order Sucks

Name: Anonymous 2014-07-14 0:56

Just fixed an error with
array[count++]= foo();
where foo() modified count, in effect writing stuff into the incorrect location.

Haskell's lazy evaluation would have prevented that.

Name: Anonymous 2014-07-15 9:04

>>42

The seed still needs to come from somewhere, and just using something like the PID often isn't good enough.

The right thing is to ask user himself for the seed, so that the code remains deterministic. Old NES games used user input timing to generate seed, despite the absence of timer and or any other external generator.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List