|
|
|
|
|
by blinks
5103 days ago
|
|
I _think_ the complaint is the following: if x == nil {
x.doSomethingCrazy(); // Runtime error?
} else {
...
} "Boolean blindness" (bah) is that either the type system should catch this at compile time (because we know x is nil), or the language should make it impossible to phrase (pattern matching to pull the information out, such as with the Maybe type). Go has many type system oddities (reflection instead of generics, for instance), but the things they _have_ done (auto-implementation of interfaces, for example) are pretty cool. |
|
What's worse is that it appears this was all done out of ignorance, not conscious choice.