Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 88324200D0B for ; Wed, 27 Sep 2017 15:59:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 869981609CA; Wed, 27 Sep 2017 13:59:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F15D41609BC for ; Wed, 27 Sep 2017 15:59:07 +0200 (CEST) Received: (qmail 2242 invoked by uid 500); 27 Sep 2017 13:59:02 -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 2231 invoked by uid 99); 27 Sep 2017 13:59:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2017 13:59:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7A357181765 for ; Wed, 27 Sep 2017 13:59:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.471 X-Spam-Level: *** X-Spam-Status: No, score=3.471 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id duyfIZEs4t-z for ; Wed, 27 Sep 2017 13:59:00 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.81]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5637360D34 for ; Wed, 27 Sep 2017 13:59:00 +0000 (UTC) Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id 9F02497B632 for ; Wed, 27 Sep 2017 06:58:59 -0700 (MST) Date: Wed, 27 Sep 2017 06:58:59 -0700 (MST) From: Daniel Sun To: dev@groovy.incubator.apache.org Message-ID: <1506520739648-0.post@n5.nabble.com> In-Reply-To: References: <1506483468614-0.post@n5.nabble.com> Subject: Re: About if statement in the right hand of assignment statement MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 27 Sep 2017 13:59:08 -0000 Hi David, If we treat if/switch statements as real expression, we may have some ugly code like the following, so I just plan to support declaration and assignment. ``` if( if (...) { ... } else if (...) { ... } else if (...) {...} else {...} ) { ... } else if ( if (...) { ... } else if (...) { ... } ) { ... } ``` Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html