Why dont you turn that 2 maps into json then compare its diffrent or not Vào lúc 21:35:38 UTC+7 ngày Thứ Ba, 18 tháng 7, 2023, Jochen Voss đã viết:
> Dear all, > > To implement the "eq" operator in a simple PostScript interpreter, I need > to determine whether two maps are the same object. > > This can be done by adding a new element to one map, and checking whether > the new entry also appears in the second map, but as you can imagine, the > resulting code is quite ugly. See https://go.dev/play/p/AfembYDt3en for > an implementation of this idea. > > Is there a better way? > > Many thanks, > Jochen > > -- 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/cb5636d5-f2fe-4e10-a660-5b556a47d36cn%40googlegroups.com.