On Mon, Nov 13, 2017 at 03:45:52AM -0800, 'Stephan Schweitzer' via golang-nuts 
wrote:

[...]
> I do not propose that functions should be comparable. My questions are:
> 
>    - Why are interfaces comparable by default? 
>    - Why is it not possible to mark an interface as comparable resp. not 
>    comparable?
>    - Why is it not possible do define user defined-equality?
>    - What is the motivation in this language design?
[...]


First, this is a cross-post of [1] (which Stephan sadly failed to mention.)

Second, while that won't address all the questions asked, the discussion
[2] covers the reasons functions in Go are not comparable pretty
thoroughly.

1. https://stackoverflow.com/q/47224422/720999
2. https://groups.google.com/d/topic/golang-nuts/fdePnbiZe-A/discussion

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to