On 2018-01-13 13:28, Axel Wagner wrote:
> Go /has/ this operator, it is spelled "*" and is a unary operator with
> even more power: It can turn a general *T into a * for any T.
> 
> Say, you'd have the function you want,

Alex, This is what I want - or rather, what I'm thinking of:

https://play.golang.org/p/jpR-JqEJq-9

No more, no less.

It works. And it's unambiguous.

Now ... this is a function, so it only works for "interface{}" being the
type of both argument and result.

But I can't really see technical reasons why one could not in principle
make a language operator, which worked for any interface{..} being of
type **T for input and *T for output. - and having that compile time
checked.

/Peter

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