On Wed, Dec 3, 2014 at 7:03 AM, Nick Wellnhofer <[email protected]> wrote:
> Don't we run into exactly the same problem as with IndexManager when writing > a custom Query or Analyzer in Go? If we implement IndexManager as a Go struct, we will have the problem of not being able to use the subtype *MyIndexManager in the context of *IndexManager. In contrast, if we implement Query as a Go _interface_, we definitely will _not_ have the analogous problem of not being able to use a *MyQuery Go struct pointer in a Query context. We may want to monkey with Query's design a bit to make implementing its interface easier, though. There may be other challenges; let me get a little further so I can provide a more informed reply. Marvin Humphrey
