From dev-return-5325-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Wed Sep 5 14:02:50 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4C582180654 for ; Wed, 5 Sep 2018 14:02:50 +0200 (CEST) Received: (qmail 2030 invoked by uid 500); 5 Sep 2018 12:02:49 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 2019 invoked by uid 99); 5 Sep 2018 12:02:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2018 12:02:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 08CC61A1317 for ; Wed, 5 Sep 2018 12:02:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.034 X-Spam-Level: *** X-Spam-Status: No, score=3.034 tagged_above=-999 required=6.31 tests=[KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id nc8tuWM7fcqM for ; Wed, 5 Sep 2018 12:02:46 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.81]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A388D5F118 for ; Wed, 5 Sep 2018 12:02:46 +0000 (UTC) Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id 6E82E888D482 for ; Wed, 5 Sep 2018 05:02:46 -0700 (MST) Date: Wed, 5 Sep 2018 05:02:46 -0700 (MST) From: "Daniel.Sun" To: dev@groovy.incubator.apache.org Message-ID: <1536148966402-0.post@n5.nabble.com> In-Reply-To: References: <1536122996422-0.post@n5.nabble.com> <1536147361842-0.post@n5.nabble.com> Subject: Re: About type inference of method return value MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I just propose the smarter type inference for methods, which was in my TODO list. > We explicitly chose not to be too smart here, because it can be confusing > to users. OK. Recently I am developing a project based on Groovy. Writing code with "dynamic" mind and compile code in "static" way. So I don't care why STC passes but just care why STC doesn't work and try to fix compilation errors, some of which impress me that Groovy is not smart enough. So I don't understand why smarter type inference will confuse users. Cheers, Daniel.Sun Cheers, Daniel.Sun ----- Daniel Sun Apache Groovy committer Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html