ahh so, there is nothing more to talk about, thanks for pointing that out.
Maybe in another time discuss if the concept interface of typescript is
kind of barrier-breaker as it includes fields as possible member
declarations, but in another time and place :D




El lun., 17 dic. 2018 a las 20:12, Ian Lance Taylor (<i...@golang.org>)
escribió:

> On Mon, Dec 17, 2018 at 3:08 PM Victor Giordano <vitucho3...@gmail.com>
> wrote:
> >
> > This is not legal statement right?
> >
> >
> > var a interface{id int} // let's call it "anonymous interface"
> >
> >
> > if we employ 'interface{}'  to refer to empty interfaces it may has
> sense to think the above declaration as an "anonymous interface" (or inline
> declared interface). I don't know if it would be for better or worse, but
> some that comes from javascript may like it :D, of course someone coming
> from java may be no so much. Don't know here the appreciation.
>
> That statement is not valid, just as
>
>     type X interface{id int}
>
> is not valid: because id is not a method.  On the other hand anonymous
> interfaces are supported, and it is valid to write
>
>     var a interface { id() int }
>
> Ian
>

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