Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 874451856F for ; Wed, 10 Feb 2016 11:23:52 +0000 (UTC) Received: (qmail 19818 invoked by uid 500); 10 Feb 2016 11:23:47 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 19778 invoked by uid 500); 10 Feb 2016 11:23:47 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 19766 invoked by uid 99); 10 Feb 2016 11:23:46 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2016 11:23:46 +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 6D71918048E for ; Wed, 10 Feb 2016 11:23:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kAcak_MB0mXP for ; Wed, 10 Feb 2016 11:23:45 +0000 (UTC) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 252EF2050D for ; Wed, 10 Feb 2016 11:23:45 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id 128so22386619wmz.1 for ; Wed, 10 Feb 2016 03:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=/BiOJJY/TF4nwVZASrP1icXva364XMuzeTLiVMvvhPo=; b=VCjaXKyli8MN7d3rhi7A36Dm5lsYC72Sd+MMlj9hdlT5a7kBRCGdbbDEnwFRiQh0CF K9UhKRa3Xdhifg2gkUUuX6p/NvBeyVoityHcMvBMs9Lp2jeqK8jcIi2A9u4dIZNjiKgw DnXAVZ7pifUobFrsKcR0usyu91xJRJHoau7jVTjJe2RN4o5V5BtcStv6lstDZ7/za6Pp 4EoXIEYDJveSQz9l6zyZD/ZnUskA6FNeRKnpQrra4a9I2d6GaNLxoO7pBG9ow98Lm0b1 9yEDuGkxYraJKefveodIMicQHS6hIL+OsI8iXRH+zjepaUx92lMwVcbYBlmPxjM0VjDe IPrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=/BiOJJY/TF4nwVZASrP1icXva364XMuzeTLiVMvvhPo=; b=OkJhS1kShpZH14QUNuhT7gqbs1/tkF0yYfcxv+x0jtwAlQvIDEt4SE6XHi79qDJ+Op FxBmi+R8Vkj6MRbeCThydF5EtuaIMoGk/hJ2Ky2VTbrYQmRZPpmkeAtoMxsLl3fAUMcn k9mbRAcVR3qpur8di8c5Gs0ZgsLlaxeDf7IeIMJIevBAKtgMU/rljIIaCnlUuN76772I 9RFat6OsfOqW0kGlsUKKeNm9KGB4NwOrgZzOsXtgxj7FfqGHgvsbv/S/1Ou4ii4mqFWV aDDBJvfdGKSu2sYVrTmVw43CMn/jW5i5xAeU3Po7TiPNWhBvRtM7JKELmc7VzrkArfsk GODg== X-Gm-Message-State: AG10YOSirqmvXYCKyOML0W43mMFQH5T0TIkyZb6uTCr9wi1m/NssLF7JD4h5+G14/1sXgA== X-Received: by 10.28.125.77 with SMTP id y74mr10084962wmc.21.1455103423823; Wed, 10 Feb 2016 03:23:43 -0800 (PST) Received: from [127.0.0.1] ([185.120.126.12]) by smtp.gmail.com with ESMTPSA id w66sm2992493wmd.2.2016.02.10.03.23.42 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 03:23:43 -0800 (PST) From: Harbs Content-Type: multipart/alternative; boundary="Apple-Mail=_79E82253-E475-416F-B3E5-A3A8AFC4021F" Message-Id: <56FF3FA9-B6F8-4ADE-8183-697FC2EAF665@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port) Date: Wed, 10 Feb 2016 13:23:33 +0200 References: <0FEC695D-B6B0-4667-B3DE-83367243D144@gmail.com> <41D562BC-FC3B-423E-9FAC-4363A0D5E6C2@gmail.com> <15C07CBD-2EAD-4BBF-A764-BBC1C5895CD5@gmail.com> <708BC387-99B5-4460-BD82-A5E06DEF0763@gmail.com> <8B5449A9-5D77-467A-ADD6-CD9A547F5123@gmail.com> <226CB7CE-E297-4DC8-996C-7AD82F01E366@gmail.com> <7D7B512D-C420-494E-AF5C-0B202306747D@gmail.com> <8D0CCC2B-3684-41F8-A18C-FD26DEAB5419@gmail.com> <4AE86F60-0721-4973-89FF-6717D1B711A2@gmail.com> <2A17939F-D853-4C06-8AB9-555C2DF2E119@gmail.com> To: dev@flex.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1878.6) --Apple-Mail=_79E82253-E475-416F-B3E5-A3A8AFC4021F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I missed an issue here: Taking an example from the spec: e.employee.(name =3D=3D "Jim").setChildren(John + = 35); or: var employeedata =3D Fred + 28 + = skiing; We need a method to concatenate two or more XML objects into an XML = object. I see two ways to do this: 1. Add a concat method to XML which returns a new XMLList with the XML = object and the value passed in. If we do this, the compiler will not = need to differentiate between XML and XMLList. Either one can be on = either side of the operator. 2. The compiler will need to create an XMLList for any XML object used. It seems to me that option #1 is simpler and less error prone. On Feb 9, 2016, at 8:04 PM, Alex Harui wrote: >>> [[append]] maps to concat() >> That=92s for XMLList. (which I=92ve already done) What do we do for = XML? Not >> implement it? throw an error? >=20 > If I understand the spec, it never gets called on XML. When the = compiler > sees the "+" operator, the generated code is supposed to generate a = new > XMLList. --Apple-Mail=_79E82253-E475-416F-B3E5-A3A8AFC4021F--