Re:Things I Love About Go
by CasualSuperman on Saturday June 23, 2012 @05:37PM
(#4151890)
Because Go is concurrent and has mutable types, race conditions could cause the assumptions gleaned from the booleans to be false in the very next statement. Boolean blindness is a result of the language.
[ Parent
| on HN ]
No, that's false -- consider the Maybe case. If you carry around the content of the Maybe, it will still remain valid even after the Maybe itself is overwritten. Races are of course still possible but they don't relate to boolean blindness.
Re:Things I Love About Go
by CasualSuperman on Sunday June 24, 2012 @06:33PM
(#4154414)
So you want to copy the data every time there's an if? Some other part of the program could have a pointer to it otherwise.