lucy-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [lucy-issues] [jira] [Commented] (CLOWNFISH-57) Map clownfish.Obj to Go empty interface
Date Wed, 05 Aug 2015 21:46:05 GMT


ASF GitHub Bot commented on CLOWNFISH-57:

Github user asfgit closed the pull request at:

> Map clownfish.Obj to Go empty interface
> ---------------------------------------
>                 Key: CLOWNFISH-57
>                 URL:
>             Project: Apache Lucy-Clownfish
>          Issue Type: Improvement
>          Components: Go
>            Reporter: Marvin Humphrey
>            Assignee: Marvin Humphrey
>             Fix For: 0.5.0
> Autogenerated bindings for Clownfish subroutines which accept or return
> clownfish Obj should be mapped to Go's "empty interface" type, `interface{}`.
> This sacrifices some type safety, but it is the only way to achieve certain
> desirable effects.  For example, it should be possible for Vector's Push()
> method to take a Go string, instead of requiring the user to perform a manual
> conversion to a Clownfish object.  Similarly, Vector's Pop() should be able to
> return a Go string.
> Functions which need to return an actual clownfish Obj wrapped in a Go struct
> will need to have hand-coded bindings, but there are fewer of those so
> converting Obj by default is the better choice.

This message was sent by Atlassian JIRA

View raw message