On Wed, Feb 9, 2022 at 9:23 AM Andy <cacowz...@gmail.com> wrote:

> The DeepEqual function has the same judgment as the deepValueEqual
> function
>
> [image: 2022-02-09_232909.png]
>

Please send code as plain text, not as an image.  Please text is much
easier to read.  Thanks.

It's true that the test appears in both DeepEqual and deepValueEqual, but
it's a cheap test, and if DeepEqual is able to return early it won't have
to allocate the map.  I don't think there is any reason to change this
code.  Thanks.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcW6rgLbF37dD8vnZyV%2BP_8%3D-bg%2BrSc0cf4ikK9u4Pht3g%40mail.gmail.com.

Reply via email to