The Compatibility section of the proposal says: "I think that this would
break no existing code, as a user function invocation untyped(EXPR) is not
at present allowed in constant specifications."

It's true that user function cannot be called in a constant expression. But
conversion to a user defined type is legal:
https://play.golang.org/p/AXSFzMR677c

IOW, the proposal is not backwards compatible.

PS: Sorry for replying here. Still no other way available w/o a Github
account.

-- 

-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