From issues-return-966-apmail-lucy-issues-archive=lucy.apache.org@lucy.apache.org Tue Aug 4 00:59:05 2015 Return-Path: X-Original-To: apmail-lucy-issues-archive@www.apache.org Delivered-To: apmail-lucy-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 160FB18F72 for ; Tue, 4 Aug 2015 00:59:05 +0000 (UTC) Received: (qmail 64364 invoked by uid 500); 4 Aug 2015 00:59:04 -0000 Delivered-To: apmail-lucy-issues-archive@lucy.apache.org Received: (qmail 64279 invoked by uid 500); 4 Aug 2015 00:59:04 -0000 Mailing-List: contact issues-help@lucy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@lucy.apache.org Delivered-To: mailing list issues@lucy.apache.org Received: (qmail 64030 invoked by uid 99); 4 Aug 2015 00:59:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 00:59:04 +0000 Date: Tue, 4 Aug 2015 00:59:04 +0000 (UTC) From: "Marvin Humphrey (JIRA)" To: issues@lucy.apache.org Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Subject: [lucy-issues] [jira] [Created] (CLOWNFISH-57) Map clownfish.Obj to Go empty interface Marvin Humphrey created CLOWNFISH-57: ---------------------------------------- Summary: Map clownfish.Obj to Go empty interface Key: CLOWNFISH-57 URL: https://issues.apache.org/jira/browse/CLOWNFISH-57 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 (v6.3.4#6332)