News for hackers. Stuff that matters.
Re:My Go Resolutions for 2017 by dragonwriter on Thursday January 19, 2017 @06:19PM (#13440376)
> In Go (as in most programming languages) it's not true that the assignment "a = b" implies that "b == foo => a == foo", if a and b are different types.

While I haven't counted and compared, I suspect that in most programming languages, "a=b" being a non-error implies that either a and b are the same type and value, or that a and b are values that, if they are of different and comparable types, will compare equal.

There are certainly popular languages that do it the way you describe, but I don't think most languages do.

Re:My Go Resolutions for 2017 by dilap on Thursday January 19, 2017 @08:15PM (#13440994)
That's a fair point.