News for hackers. Stuff that matters.
Re:Having fun with Go's nil, interfaces and errors by Vendan on Saturday September 17, 2016 @07:47PM (#12523143)
Having dealt with languages that don't, I much prefer ones that do. The thing is, most languages DO basically check vtables, in that 2 values with different types will never be equal (unless there is implicit casting or some kind of equality override). For instance, 1 == "1" is valid, and true, in PHP, even though that is less then ideal. The difference, of course, is that most of those checks are done at compile time in many languages. Go will do some checks at compile time, but it's specifically unable to do some of them due to the "dynamics" of how interface variables work.

There are no comments on this comment yet.