Re:My Go Resolutions for 2017
by stouset on Thursday January 19, 2017 @08:40PM
(#13441120)
> 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 this is true, in all of those other cases you have the benefit of compile-time type checking so cannot call a function on the wrong type.
While this is true, in all of those other cases you have the benefit of compile-time type checking so cannot call a function on the wrong type.
With nil, you get runtime errors.