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 30AD6200BF2 for ; Mon, 2 Jan 2017 12:09:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2F2B1160B30; Mon, 2 Jan 2017 11:09:05 +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 797F4160B21 for ; Mon, 2 Jan 2017 12:09:04 +0100 (CET) Received: (qmail 30293 invoked by uid 500); 2 Jan 2017 11:08:58 -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 30280 invoked by uid 99); 2 Jan 2017 11:08:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jan 2017 11:08:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CA6D7C0256 for ; Mon, 2 Jan 2017 11:08:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vr_kKqgzF0Ih for ; Mon, 2 Jan 2017 11:08:57 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D41BE5F33E for ; Mon, 2 Jan 2017 11:08:56 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id c85so178248488wmi.1 for ; Mon, 02 Jan 2017 03:08:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:subject:message-id:date:to :mime-version; bh=CZiD0VezpHCwGC4f8IQoJnzoJqlHASwgu6GRTOXHrc4=; b=S20ck4liNxbzYaGzKttwgOshPS1gsI5vRTYwHQb/8EGwwIKAJme4H3/33Q+lOBK9c4 5f3OxKqH4oC66d7dWe/BFdDZLtOrCkE0LI5z7NZwTVYot6ALfgKETDhOKYcbUmLHGYsf Dd6fqloh+mFY4N8VKQLBUnFT/4btDl93ktec14JsVVV0fD+/nsvoy9dAhJioEtGB/rbe yv2jwnD+fQMBUlvmTbNioO2ogW7hFP9PpoYZoEQ8UB0ibPr0lF7e6g0XDEBufNikrItL chmiHuyQUJakSJILo85TYGRi+b9GMFdym8DsyX1ot/ILeFooxgeN7atB8gFQLRuP28zA IJvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=CZiD0VezpHCwGC4f8IQoJnzoJqlHASwgu6GRTOXHrc4=; b=pAeZUgePZ1AiDZjadx7wXfr+8nymAOClZb2w7PKIzPizDsEgsTAx8oJhQ9y9b05f7u dGY4qS18VPQnjX94l70uyAYPRn62CPxJ4JtiEwMo6qAq+xVLhVSHZW24tz8Vuo4fTV4K NffZsWi446CXT68/xI8MzcP+ftVsrIR5SdFRoBdebhCw0TLPlBfRk+e7Q7icvhwOQdxg vpb7elOKmOCirONpHnrae56AVhu9XQmQcoCPqR0mNyv7X09PjGG93d3bRhLzyg7b62hV HYR/9o9ZQ8V/eHsNRP2AiuRJ6fVUPYZG5P52CHy7FbVrN80EYCzkDnGukZxzld8d9lI8 2mug== X-Gm-Message-State: AIkVDXIVeRoWPidpH8dmAMutvvtnfFCaJOg8xG9rZQ1cPRuSnsMaFnfetvj2IJo8znt/Zw== X-Received: by 10.28.149.79 with SMTP id x76mr46901823wmd.27.1483355333993; Mon, 02 Jan 2017 03:08:53 -0800 (PST) Received: from [10.0.0.1] ([82.166.23.15]) by smtp.gmail.com with ESMTPSA id f134sm83868283wmf.19.2017.01.02.03.08.52 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Jan 2017 03:08:53 -0800 (PST) From: Harbs Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: I just learned something in Javascript Message-Id: <5EC8F0CD-66C9-4AFB-8C49-2CD1E476485C@gmail.com> Date: Mon, 2 Jan 2017 13:08:50 +0200 To: dev Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) archived-at: Mon, 02 Jan 2017 11:09:05 -0000 Apparently Number(=931234=94) is the same as a shorthand version: = +=941234=94. Both of these will convert a string into a number and will = give NaN if the string can not be converted to a logical number. Performance-wise, different browsers seem to give different results as = to which one is faster. I think we should make it standard practice to use =93+=94 instead of = Number() for casting to Number in FlexJS. It will save 7 characters for = every cast. Harbs=