Am Freitag, 20. Januar 2017 08:59:08 UTC+1 schrieb Viktor Kojouharov:
>
> Considering how easy it is to create new types based on underlying types, 
> how come the newly created ones do not delegate method calls to their 
> underlying types? 
>

The whole idea of a new type is that it has its own method set:
Its behavior is different, otherwise you could use the underlying
type directly. Promoting methods of the underlying type whould
invalidate this whole idea.

V.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to