I fully understand that this can be implemented in many different ways. 
That's not my question. Splitting words about "consists of" and "has a" 
doesn't add much to the discussion.

On Monday, November 27, 2017 at 3:12:31 PM UTC+1, Jan Mercl wrote:
>
> On Mon, Nov 27, 2017 at 3:02 PM Stefan Nilsson <trollerip...@gmail.com 
> <javascript:>> wrote:
>
> > Sure, using a type descriptor to implement the dynamic type is an 
> implementation detail. but the fact that an interface value consists of a 
> concrete value and a dynamic type is part of the spec. 
>
> The value of an interface variable does not consist of two things. It 
> consists of one thing, the dynamic value and _has_ a dynamic type. The 
> later does not need to by stored in the interface variable value. Storing 
> the type information in the interface variable value is a very reasonable 
> choice, but other approaches are possible, even though it may mean wasting 
> some additional memory elsewhere.
>
> -- 
>
> -j
>

-- 
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