Ah yes thats the one. It was from the discussion which was around
eventhorizon that I read.
On Tuesday, May 10, 2016 at 3:12:52 PM UTC+1, Egon wrote:
On Tuesday, 10 May 2016 16:42:58 UTC+3, GoNutter wrote:

@Egon, didnt you write a CQRS implementation? I am sure I saw one several
weeks ago that was based on Greg's m-r code? Couldnt find it again since.
Well, yes and no... it was an actual piece from an application... I
uploaded it because of a discussion and thoughtlessly named it "cqrs/es

I adjusted and clarified the README (
https://github.com/egonelbre/guestlist) ... I probably would implement
some things differently now.

+ Egon

On Tuesday, May 10, 2016 at 2:40:12 PM UTC+1, GoNutter wrote:

Hi Jan,

I think you nailed it. However having changed the code to use a declared
type I think the code is better for it in lots of ways. I think I will just
go with the declared type.

Many thanks for your help.
On Tuesday, May 10, 2016 at 2:07:30 PM UTC+1, Jan Mercl wrote:

On Tue, May 10, 2016 at 3:02 PM GoNutter wrote:

I am beginning to hypothesize that under the hood, the compiler is
doing something to facilitate anonymous types and it will create a name for
it in one application that is actually different in the other...


Two struct types are identical if they have the same sequence of
fields, and if corresponding fields have the same names, and identical
types, and identical tags. Two anonymous fields are considered to have the
same name. Lower-case field names from different packages are always
"""" [0]

Note the last sentence above. It means that anonymous struct{error}
defined in one package is a different type wrt to the "same" defined in a
different package.

To solve the issue, give that type a name.

[0]: https://golang.org/ref/spec#Type_identity


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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 16 of 16 | next ›
Discussion Overview
groupgolang-nuts @
postedMay 10, '16 at 11:43a
activeMay 10, '16 at 2:25p



site design / logo © 2021 Grokbase