Very helpful. Thank you. I will edit my proposal based on this. On Thu, Mar 28, 2019 at 11:17 PM Jan Mercl <0xj...@gmail.com> wrote:
> 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 > -- *Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>* -- 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.